lib/dev_tasks.rb in dev_tasks-0.0.57 vs lib/dev_tasks.rb in dev_tasks-0.0.58

- old
+ new

@@ -28,10 +28,11 @@ self[:command_order]=['upgrade','add','build','test','commit','publish'] self[:relative_directory]=Environment.relative_directory self[:working_directory]=Environment.working_directory self[:context]=Environment.context self[:machine]=Environment.machine + self[:platform]=RUBY_PLATFORM self[:dev_root]=Environment.dev_root self[:settings]=Settings.new update end @@ -45,9 +46,13 @@ self[:dependencies]=Dependencies.new if !has_key?(:dependencies) self[:artifacts]=Artifacts.new if !has_key?(:artifacts) self[:commands]=Commands.new if !has_key?(:commands) self[:commands].update update_tasks + end + + def execute cmd + self[:commands].execute_command cmd end def execute_task task timer=Timer.new #start_time=Time.now