lib/ztk/command.rb in ztk-1.0.9 vs lib/ztk/command.rb in ztk-1.0.10
- old
+ new
@@ -59,10 +59,10 @@
# @return [OpenStruct#exit_code] The exit code of the process.
#
# @example Execute a command:
#
# cmd = ZTK::Command.new
- # puts cmd.exec("hostname -f").inspect
+ # puts cmd.exec("hostname").inspect
#
def exec(command, options={})
options = OpenStruct.new({ :exit_code => 0, :silence => false }.merge(config.send(:table)).merge(options))
options.ui.logger.debug { "config=#{options.send(:table).inspect}" }