Class: Rabal::Plugin::Rubyforge

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Rubyforge

Returns a new instance of Rubyforge.



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/rabal/plugin/rubyforge.rb', line 8

def initialize(options)
    begin
        require 'rubyforge'
    rescue LoadError
        Log::fatal("Unable to use the rubyforge plugin, the rubyforge library is required.")
        exit 1
    end

    @parameters = OpenStruct.new(options)
    validate_parameters
    @tree = PluginTree.new(@parameters.marshal_dump, resource_by_name(my_main_tree_name))
end