Class: Commands
Instance Method Summary collapse
-
#initialize(directory = Dir.pwd) ⇒ Commands
constructor
A new instance of Commands.
Methods inherited from Hash
Constructor Details
#initialize(directory = Dir.pwd) ⇒ Commands
Returns a new instance of Commands.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/commands.rb', line 18 def initialize directory=Dir.pwd Dir.chdir(directory) do self[:pull]=Pull.new self[:update]=Update.new self[:setup]=Setup.new self[:build]=Build.new self[:test]=Test.new self[:analyze]=Analyze.new self[:doc]=Doc.new self[:clean]=Clean.new self[:publish]=Publish.new self[:clobber]=Clobber.new self[:add]=Add.new self[:commit]=Commit.new self[:push]=Push.new end end |