Sha256: 971433c0b98197be39bcccdf86d19f497391ccdb7a17eb6653c31acd5cb877ef

Contents?: true

Size: 1.24 KB

Versions: 15

Compression:

Stored size: 1.24 KB

Contents

module CORL
module Facade
    
  #-----------------------------------------------------------------------------
  # Core plugin type facade
  
  def configuration(options, provider = nil)
    plugin(:configuration, provider, options)
  end
  
  def configurations(data, build_hash = false, keep_array = false)
    plugins(:configuration, data, build_hash, keep_array)
  end
  
  #-----------------------------------------------------------------------------
  # Cluster plugin type facade
   
  def network(name, options = {}, provider = nil)
    plugin(:network, provider, Config.ensure(options).import({ :name => name }))
  end
  
  def networks(data, build_hash = false, keep_array = false)
    plugins(:network, data, build_hash, keep_array)
  end
   
  #---
  
  def node(name, options = {}, provider = nil)
    plugin(:node, provider, Config.ensure(options).import({ :name => name }))
  end
  
  def nodes(data, build_hash = false, keep_array = false)
    plugins(:node, data, build_hash, keep_array)
  end
  
  #---
  
  def provisioner(options, provider = nil)
    plugin(:provisioner, provider, options)
  end
  
  #---
  
  def provisioners(data, build_hash = false, keep_array = false)
    plugins(:provisioner, data, build_hash, keep_array)
  end
end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
corl-0.4.15 lib/core/facade.rb
corl-0.4.14 lib/core/facade.rb
corl-0.4.13 lib/core/facade.rb
corl-0.4.12 lib/core/facade.rb
corl-0.4.11 lib/core/facade.rb
corl-0.4.10 lib/core/facade.rb
corl-0.4.9 lib/core/facade.rb
corl-0.4.8 lib/core/facade.rb
corl-0.4.7 lib/core/facade.rb
corl-0.4.6 lib/core/facade.rb
corl-0.4.5 lib/core/facade.rb
corl-0.4.4 lib/core/facade.rb
corl-0.4.3 lib/core/facade.rb
corl-0.4.2 lib/core/facade.rb
corl-0.4.1 lib/core/facade.rb