Sha256: 220aac7ed965c702b4cf2ed30a3719e14c50226b58467e551184ac973fbd6779

Contents?: true

Size: 384 Bytes

Versions: 5

Compression:

Stored size: 384 Bytes

Contents

module CloudstackClient
  class ConnectionHelper
    def self.load_configuration(config_file)
      begin
        return YAML::load(IO.read(config_file))
      rescue Exception => e
        $stderr.puts "Can't find the config file '#{config_file}'"
        $stderr.puts "Please see https://bitbucket.org/swisstxt/cloudstack-cli under 'Setup'"
        exit
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloudstack-cli-0.1.0 lib/cloudstack-client/helper.rb
cloudstack-cli-0.0.5 lib/cloudstack-client/helper.rb
cloudstack-cli-0.0.4 lib/cloudstack-client/helper.rb
cloudstack-cli-0.0.3 lib/cloudstack-client/helper.rb
cloudstack-cli-0.0.2 lib/cloudstack-client/helper.rb