Class: Rabal::Plugin::Core

Inherits:
Object
  • Object
show all
Defined in:
lib/rabal/plugin/core.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Core

core is slightly different from the default and uses a ProjecTree instead of a PluginTree. It does attach a PluginTree below the project tree with the basic file structure



17
18
19
20
21
22
# File 'lib/rabal/plugin/core.rb', line 17

def initialize(options)
    @parameters = OpenStruct.new(options)
    validate_parameters
    @tree = ProjectTree.new(options[:project] || options["project"],@parameters)
    @tree << PluginTree.new({},resource_by_name(my_main_tree_name))
end