lib/dev_tasks.rb in dev_tasks-0.0.96 vs lib/dev_tasks.rb in dev_tasks-0.0.97

- old
+ new

@@ -70,16 +70,17 @@ def execute cmd self[:commands].execute_command cmd end def execute_task task + sym_task = task.to_sym timer=Timer.new #start_time=Time.now Console.announce_task_start task - if(!self[:commands].has_key?(task)) + if(!self[:commands].has_key?(sym_task)) puts "no commands discovered for task " + task else - self[:commands][task].each {|c| self[:commands].execute_command(c) } + self[:commands][sym_task].each {|c| self[:commands].execute_command(c) } end elapsed = timer.elapsed #end_time=Time.now #elapsed=end_time-start_time if elapsed > 30