Class: EySecrets::Restart

Inherits:
Struct
  • Object
show all
Includes:
CommandBuilder
Defined in:
lib/ey_secrets/actions/restart.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CommandBuilder

#commands, #scp, #ssh

Instance Attribute Details

#instanceObject

Returns the value of attribute instance

Returns:

  • (Object)

    the current value of instance



2
3
4
# File 'lib/ey_secrets/actions/restart.rb', line 2

def instance
  @instance
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



2
3
4
# File 'lib/ey_secrets/actions/restart.rb', line 2

def options
  @options
end

Instance Method Details

#buildObject



5
6
7
8
# File 'lib/ey_secrets/actions/restart.rb', line 5

def build
  restart_monit
  restart_passenger
end