From 797b89fcb133219583d0f473094a8c7e2f62000c Mon Sep 17 00:00:00 2001 From: geemus Date: Sun, 11 Apr 2021 11:16:37 -0500 Subject: [PATCH] add bin/cloudstack back in to get ci on track --- lib/fog/bin/cloudstack.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 lib/fog/bin/cloudstack.rb diff --git a/lib/fog/bin/cloudstack.rb b/lib/fog/bin/cloudstack.rb new file mode 100644 index 000000000..0dc3ee481 --- /dev/null +++ b/lib/fog/bin/cloudstack.rb @@ -0,0 +1,28 @@ +class Cloudstack < Fog::Bin + class << self + def class_for(key) + case key + when :compute + Fog::Compute::Cloudstack + else + raise ArgumentError, "Unrecognized service: #{key}" + end + end + + def [](service) + @@connections ||= Hash.new do |hash, key| + hash[key] = case key + when :compute + Fog::Compute.new(:provider => 'Cloudstack') + else + raise ArgumentError, "Unrecognized service: #{key.inspect}" + end + end + @@connections[service] + end + + def services + Fog::Cloudstack.services + end + end +end