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.



4
5
6
7
# File 'lib/forward.rb', line 4

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

Instance Method Details

#runObject



9
10
11
12
13
14
# File 'lib/forward.rb', line 9

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

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