Sha256: d11caf85565fe90447e98d6245493e2319a4707b54067d08b0c446e6c44e512a

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 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 "To create a new configuration file run \"cs setup\"."
        exit 1
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloudstack-cli-0.1.7 lib/cloudstack-client/helper.rb
cloudstack-cli-0.1.6 lib/cloudstack-client/helper.rb
cloudstack-cli-0.1.5 lib/cloudstack-client/helper.rb
cloudstack-cli-0.1.4 lib/cloudstack-client/helper.rb
cloudstack-cli-0.1.3 lib/cloudstack-client/helper.rb