Method: PoolParty::Cloud#initialize
- Defined in:
- lib/poolparty/cloud.rb
#initialize(n, o = {}, &block) ⇒ Cloud
Freeze the cloud_name so we can’t modify it at all, set the plugin_directory call and run instance_eval on the block and then call the after_create callback
38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/poolparty/cloud.rb', line 38 def initialize(n, o={}, &block) @cloud_name = n @cloud_name.freeze # @init_block = block @init_opts = compile_opts(o) @init_block = Proc.new do super(n,o,&block) end end |