lib/shelltastic.rb in shelltastic-0.4.0 vs lib/shelltastic.rb in shelltastic-0.5.0
- old
+ new
@@ -18,8 +18,12 @@
# ShellTastic::Command.run "whoami"
# ShellTastic::Command.run "whoami", "date"
def run(*command)
command.flatten.map { |cmd| ShellTastic::IO.popen(cmd, ShellTastic::Timer.new, ShellTastic::OutputFormatter.new) }
end
+
+ def start(*command)
+ command.flatten.map { |cmd| ShellTastic::IO.fire_and_forget(cmd, ShellTastic::Timer.new, ShellTastic::OutputFormatter.new) }
+ end
end
end
end