Sha256: 3d9e04e6c088fd19fa7fe1110e231df8000f8d485342b37b598e366e3a807314

Contents?: true

Size: 367 Bytes

Versions: 3

Compression:

Stored size: 367 Bytes

Contents

module CloudstackClient
  module 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

3 entries across 3 versions & 1 rubygems

Version Path
cloudstack-cli-0.2.2 lib/cloudstack-client/helper.rb
cloudstack-cli-0.2.1 lib/cloudstack-client/helper.rb
cloudstack-cli-0.2.0 lib/cloudstack-client/helper.rb