Class: Vagabund::Settler::Project

Inherits:
Vagabund::Settler::Projects::Base show all
Defined in:
lib/vagabund/settler/projects.rb

Instance Attribute Summary

Attributes inherited from Vagabund::Settler::Projects::Base

#config

Class Method Summary collapse

Methods inherited from Vagabund::Settler::Projects::Base

#action_exec, #configure, #exec_after, #exec_before, #hook_exec, #name, #project_path, #provision, #pull

Class Method Details

.new(*args, &block) ⇒ Object



12
13
14
15
# File 'lib/vagabund/settler/projects.rb', line 12

def self.new(*args, &block)
  klass = (args.first.is_a?(Symbol) ? args.shift : :base).to_s.capitalize
  eval("Projects::#{klass}.new *args, &block")
end