lib/howzit/task.rb in howzit-2.1.10 vs lib/howzit/task.rb in howzit-2.1.12

- old
+ new

@@ -37,11 +37,11 @@ ## Inspect ## ## @return [String] description ## def inspect - %(<#Howzit::Task @type=:#{@type} @title="#{@title}" @arguments=#{@arguments} @block?=#{@action.split(/\n/).count > 1}>) + %(<#Howzit::Task @type=:#{@type} @title="#{@title}" @action="#{@action}" @arguments=#{@arguments} @block?=#{@action.split(/\n/).count > 1}>) end ## ## Output string representation ## @@ -93,20 +93,21 @@ ## Execute a run task ## def run_run title = Howzit.options[:show_all_code] ? @action : @title Howzit.console.info("#{@prefix}{bg}Running {bw}#{title}{x}".c) - return system(@action) + ENV['HOWZIT_SCRIPTS'] = File.expand_path('~/.config/howzit/scripts') + system(@action) end ## ## Execute a copy task ## def run_copy title = Howzit.options[:show_all_code] ? @action : @title Howzit.console.info("#{@prefix}{bg}Copied {bw}#{title}{bg} to clipboard{x}".c) Util.os_copy(@action) - return true + true end ## ## Execute the task ##