Class: Commands

Inherits:
Hash
  • Object
show all
Defined in:
lib/commands.rb

Instance Method Summary collapse

Methods inherited from Hash

#execute, #to_html

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