lib/new/task.rb in new-1.0.9 vs lib/new/task.rb in new-1.0.10
- old
+ new
@@ -1,5 +1,8 @@
+#
+# New::Task is the base class that all custom tasks need to inherit from
+#
class New::Task
extend New::Validation
#
# CLASS METHODS
@@ -63,9 +66,12 @@
@options[:task_options][option_name] = new_option_value
end
end
# run a system command
+ # @param command [String] the system command to run
+ # @return [Boolean] true/false based on if the exit status of the command
+ #
def run_command command
# if verbose, dont redirect output to null
command += ' >> /dev/null 2>&1' unless New.verbose
# run the command