class CORL::Node::FogBase

Public Instance Methods

api_key() click to toggle source
   # File lib/core/plugin/fog_node.rb
48 def api_key
49   myself[:api_key]
50 end
api_key=(api_key) click to toggle source
   # File lib/core/plugin/fog_node.rb
44 def api_key=api_key
45   myself[:api_key] = api_key
46 end
api_user() click to toggle source
   # File lib/core/plugin/fog_node.rb
38 def api_user
39   myself[:api_user]
40 end
api_user=(api_user) click to toggle source
   # File lib/core/plugin/fog_node.rb
34 def api_user=api_user
35   myself[:api_user] = api_user
36 end
auth_url() click to toggle source
   # File lib/core/plugin/fog_node.rb
58 def auth_url
59   myself[:auth_url]
60 end
auth_url=(auth_url) click to toggle source
   # File lib/core/plugin/fog_node.rb
54 def auth_url=auth_url
55   myself[:auth_url] = auth_url
56 end
connection_options() click to toggle source
   # File lib/core/plugin/fog_node.rb
68 def connection_options
69   myself[:connection_options]
70 end
connection_options=(options) click to toggle source
   # File lib/core/plugin/fog_node.rb
64 def connection_options=options
65   myself[:connection_options] = options
66 end
create(options = {}) { |op, config| ... } click to toggle source
Calls superclass method
    # File lib/core/plugin/fog_node.rb
121 def create(options = {})
122   super do |op, config|
123     if op == :config
124       config.import(exec_options(:create))
125       config.defaults(key_config)
126     end
127     yield(op, config) if block_given?
128   end
129 end
create_image(options = {}) { |op, config| ... } click to toggle source
Calls superclass method
    # File lib/core/plugin/fog_node.rb
189 def create_image(options = {})
190   super do |op, config|
191     if op == :config
192       config.import(exec_options(:image))
193     end
194     yield(op, config) if block_given?
195   end
196 end
destroy(options = {}) { |op, config| ... } click to toggle source
Calls superclass method
    # File lib/core/plugin/fog_node.rb
211 def destroy(options = {})
212   super do |op, config|
213     if op == :config
214       config.import(exec_options(:destroy))
215     end
216     yield(op, config) if block_given?
217   end
218 end
download(remote_path, local_path, options = {}) { |op, config| ... } click to toggle source
Calls superclass method
    # File lib/core/plugin/fog_node.rb
133 def download(remote_path, local_path, options = {})
134   super do |op, config|
135     if op == :config
136       config.import(exec_options(:download))
137     end
138     yield(op, config) if block_given?
139   end
140 end
exec(options = {}) { |op, config| ... } click to toggle source
Calls superclass method
    # File lib/core/plugin/fog_node.rb
155 def exec(options = {})
156   super do |op, config|
157     if op == :config
158       config.import(exec_options(:exec))
159     end
160     yield(op, config) if block_given?
161   end
162 end
exec_options(name, options = {}) click to toggle source
    # File lib/core/plugin/fog_node.rb
114 def exec_options(name, options = {})
115   extended_config(name, options).export
116 end
key_config() click to toggle source
    # File lib/core/plugin/fog_node.rb
108 def key_config
109   { :private_key_path => private_key, :public_key_path  => public_key }
110 end
machine_config() { |config| ... } click to toggle source
Calls superclass method
    # File lib/core/plugin/fog_node.rb
 99 def machine_config
100   super do |config|
101     config[:connection_options] = connection_options if connection_options
102     yield(config) if block_given?
103   end
104 end
normalize(reload) { || ... } click to toggle source
Calls superclass method
   # File lib/core/plugin/fog_node.rb
13 def normalize(reload)
14   super
15 
16   @region_info = Config.new({}, {}, true, false) unless reload
17 
18   myself.region = region
19 
20   unless reload
21     machine_provider = :fog
22     machine_provider = yield if block_given?
23 
24     myself.machine = create_machine(:machine, machine_provider, machine_config)
25   end
26 end
region() click to toggle source
   # File lib/core/plugin/fog_node.rb
86 def region
87   if region = myself[:region]
88     region
89   else
90     first_region  = regions.first
91     myself.region = first_region
92     first_region
93   end
94 end
region=(region) click to toggle source
   # File lib/core/plugin/fog_node.rb
82 def region=region
83   myself[:region] = region
84 end
region_info() click to toggle source
   # File lib/core/plugin/fog_node.rb
74 def region_info
75   @region_info
76 end
regions() click to toggle source
   # File lib/core/plugin/fog_node.rb
78 def regions
79   @region_info.keys
80 end
reload(options = {}) { |op, config| ... } click to toggle source
Calls superclass method
    # File lib/core/plugin/fog_node.rb
178 def reload(options = {})
179   super do |op, config|
180     if op == :config
181       config.import(exec_options(:reload))
182     end
183     yield(op, config) if block_given?
184   end
185 end
start(options = {}) { |op, config| ... } click to toggle source
Calls superclass method
    # File lib/core/plugin/fog_node.rb
166 def start(options = {})
167   super do |op, config|
168     if op == :config
169       config.import(exec_options(:start))
170       config.defaults(key_config)
171     end
172     yield(op, config) if block_given?
173   end
174 end
stop(options = {}) { |op, config| ... } click to toggle source
Calls superclass method
    # File lib/core/plugin/fog_node.rb
200 def stop(options = {})
201   super do |op, config|
202     if op == :config
203       config.import(exec_options(:stop))
204     end
205     yield(op, config) if block_given?
206   end
207 end
upload(local_path, remote_path, options = {}) { |op, config| ... } click to toggle source
Calls superclass method
    # File lib/core/plugin/fog_node.rb
144 def upload(local_path, remote_path, options = {})
145   super do |op, config|
146     if op == :config
147       config.import(exec_options(:upload))
148     end
149     yield(op, config) if block_given?
150   end
151 end