Method: Sunshine::StartCommand.exec

Defined in:
lib/commands/start.rb

.exec(names, config) ⇒ Object

Takes an array and a hash, runs the command and returns:

true: success
false: failed
exitcode:
  code == 0: success
  code != 0: failed

and optionally an accompanying message.



30
31
32
33
34
35
36
37
38
# File 'lib/commands/start.rb', line 30

def self.exec names, config
  force = config['force']

  output = exec_each_server config do |shell|
    new(shell).start(names, force)
  end

  return output
end