Class: Inferno::CLI::Services

Inherits:
Thor
  • Object
show all
Defined in:
lib/inferno/apps/cli/services.rb

Instance Method Summary collapse

Instance Method Details

#buildObject



28
29
30
# File 'lib/inferno/apps/cli/services.rb', line 28

def build
  system "#{base_command} build"
end

#logsObject



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 options[:follow]
  command += " --tail #{options[:tail]}" if options[:tail]

  system command
end

#pullObject



33
34
35
# File 'lib/inferno/apps/cli/services.rb', line 33

def pull
  system "#{base_command} pull"
end

#startObject



15
16
17
18
19
20
# File 'lib/inferno/apps/cli/services.rb', line 15

def start
  command = "#{base_command} up"
  command += ' -d' unless options[:foreground]

  system command
end

#stopObject



23
24
25
# File 'lib/inferno/apps/cli/services.rb', line 23

def stop
  system "#{base_command} down"
end