lib/vanagon/project/dsl.rb
# Adds a component to the project
#
# @param name [String] name of component to add. must be present in configdir/components and named $name.rb currently
Adds a component to the project
Adds a component to the project
def component(name)
        puts "Loading #{name}"
        if @include_components.empty? or @include_components.include?(name)
          component = Vanagon::Component.load_component(name, File.join(Vanagon::Driver.configdir, "components"), @project.settings, @project.platform)
          @project.components << component
        end
      end
def component ( name ) puts "Loading #{name}" if @include_components . empty? or @include_components . include? ( name ) component = Vanagon :: Component . load_component ( name , File . join ( Vanagon :: Driver . configdir , "components" ) , @project . settings , @project . platform ) @project . components << component end end
Adds a component to the project
Adds a component to the project
name
name of component to add. must be present in configdir/components and named $name.rb currently
name of component to add . must be present in configdir / components and named $name . rb currently