Class: Inferno::CLI::Services
- Inherits:
-
Thor
- Object
- Thor
- Inferno::CLI::Services
- Defined in:
- lib/inferno/apps/cli/services.rb
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
28 29 30 |
# File 'lib/inferno/apps/cli/services.rb', line 28 def build system "#{base_command} build" end |
#logs ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/inferno/apps/cli/services.rb', line 47 def logs command = "#{base_command} logs" command += ' -f' if [:follow] command += " --tail #{[:tail]}" if [:tail] system command end |
#pull ⇒ Object
33 34 35 |
# File 'lib/inferno/apps/cli/services.rb', line 33 def pull system "#{base_command} pull" end |
#start ⇒ Object
15 16 17 18 19 20 |
# File 'lib/inferno/apps/cli/services.rb', line 15 def start command = "#{base_command} up" command += ' -d' unless [:foreground] system command end |
#stop ⇒ Object
23 24 25 |
# File 'lib/inferno/apps/cli/services.rb', line 23 def stop system "#{base_command} down" end |