lib/teuton/project/readme/dsl.rb in teuton-2.1.8 vs lib/teuton/project/readme/dsl.rb in teuton-2.1.9
- old
+ new
@@ -57,10 +57,12 @@
@action[:exec] = args[:exec] || 'noexec'
end
def run(command, args = {})
args[:exec] = command
- goto(:localhost, args)
+ host = :localhost
+ host = args[:on] if args[:on]
+ goto(host, args)
end
def expect(_cond, _args = {})
@current[:actions] << @action
result.reset