lib/command.rb in dev_commands-0.0.44 vs lib/command.rb in dev_commands-0.0.45
- old
+ new
@@ -47,14 +47,16 @@
}
end
end
def execute
- puts "#{self[:input]}" if(!self.has_key?(:quiet) || !self[:quiet])
+
pwd=Dir.pwd
Dir.chdir(self[:directory]) if(self.has_key?(:directory) && File.exists?(self[:directory]))
self[:directory] = pwd if(self[:directory].length==0)
+ puts "#{self[:input]} (#{self[:directory]})" if(!self.has_key?(:quiet) || !self[:quiet])
+
self[:machine] = Command.machine
self[:user] = Command.user
self[:start_time]=Time.now
timer=Timer.new
\ No newline at end of file