command_timer 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/command_timer/runner.rb +3 -1
- data/lib/command_timer/version.rb +1 -1
- metadata +1 -1
data/lib/command_timer/runner.rb
CHANGED
@@ -3,7 +3,7 @@ module CommandTimer
|
|
3
3
|
def initialize(yml, options = {})
|
4
4
|
@commands = Parser.parse(yml)
|
5
5
|
echo_commands
|
6
|
-
@count_down = options['count_down'] ||
|
6
|
+
@count_down = options['count_down'] || 30
|
7
7
|
@ntp_server = options['ntp_server']
|
8
8
|
end
|
9
9
|
|
@@ -11,6 +11,7 @@ module CommandTimer
|
|
11
11
|
@commands.each_with_index do |command, index|
|
12
12
|
puts "####################"
|
13
13
|
puts "# Next: Command#{index + 1}"
|
14
|
+
puts "# #{command.description}" if command.description
|
14
15
|
puts "####################"
|
15
16
|
if command.burn_time
|
16
17
|
count_down_and_burn_command(command)
|
@@ -71,6 +72,7 @@ module CommandTimer
|
|
71
72
|
command.echo_command
|
72
73
|
end
|
73
74
|
puts "--------------------"
|
75
|
+
puts ""
|
74
76
|
end
|
75
77
|
end
|
76
78
|
end
|