Class: Forward

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

Instance Method Summary collapse

Constructor Details

#initialize(dir, args) ⇒ Forward

Returns a new instance of Forward.



6
7
8
9
# File 'lib/forward.rb', line 6

def initialize(dir, args)
	@dir = dir
	@args = args
end

Instance Method Details

#runObject



11
12
13
14
15
16
# File 'lib/forward.rb', line 11

def run
	Output.notice("Forwarding 'ops #{@args.join(" ")}' to '#{@dir}/'...")

	Dir.chdir(@dir)
	Ops.new(@args).run
end