Class: Launcher
- Inherits:
-
Object
- Object
- Launcher
- Defined in:
- lib/launcher/launcher.rb
Instance Method Summary collapse
Instance Method Details
#run(commands) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/launcher/launcher.rb', line 12 def run(commands) commands.map { | command | next if command.empty? @result = run_command(command) break unless @result } end |
#success? ⇒ Boolean
20 21 22 |
# File 'lib/launcher/launcher.rb', line 20 def success? @result end |