Module: Raykit
- Defined in:
- lib/raykit.rb,
lib/raykit/git.rb,
lib/raykit/timer.rb,
lib/raykit/dotnet.rb
Defined Under Namespace
Classes: DotNet, Git, Timer
Class Method Summary
collapse
Class Method Details
.run(command) ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/raykit.rb', line 10
def Raykit.run(command)
timer = Timer.new
if(system(command))
puts timer.elapsed_str + " " + Rainbow(command).yellow.bright
return timer.elapsed_str + " " + command
else
puts "\r\n" + command + "\r\n"
system(command)
puts ''
abort Rainbow(timer.elapsed_str).red.bright + " " + Rainbow(command).white
end
end
|