Class: Commands
Overview
require_relative(‘push.rb’)
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.
576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 |
# File 'lib/dev_commands.rb', line 576 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 |