Module: Chef::Knife::Cloud::FogOptions

Defined in:
lib/chef/knife/cloud/fog/options.rb

Class Method Summary collapse

Class Method Details

.included(includer) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/chef/knife/cloud/fog/options.rb', line 11

def self.included(includer)
  includer.instance_eval do
    option :fog_version,
      long: "--fog-version version",
      description: "Fog gem version to use. Use the ruby gem version strings",
      default: "",
      proc: Proc.new { |v| Chef::Config[:knife][:cloud_fog_version] = v }

    option :api_endpoint,
      long: "--api-endpoint ENDPOINT",
      description: "Your API endpoint. Eg, for Eucalyptus it can be 'http://ecc.eucalyptus.com:8773/services/Eucalyptus'",
      proc: Proc.new { |endpoint| Chef::Config[:knife][:api_endpoint] = endpoint }

  end
end