Class: Serverkit::Actions::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/serverkit/actions/base.rb

Direct Known Subclasses

Apply, Check, Inspect, Validate

Constant Summary collapse

DEFAULT_LOG_LEVEL =
::Logger::INFO

Instance Method Summary collapse

Constructor Details

#initialize(hosts: nil, log_level: nil, recipe_path: nil, ssh_options: nil, variables_path: nil) ⇒ Base

Returns a new instance of Base.

Parameters:

  • hosts (String, nil) (defaults to: nil)
  • log_level (Fixnum) (defaults to: nil)
  • recipe_path (String) (defaults to: nil)
  • ssh_options (Hash, nil) (defaults to: nil)

    For override default ssh options

  • variables_path (Stirng, nil) (defaults to: nil)


20
21
22
23
24
25
26
# File 'lib/serverkit/actions/base.rb', line 20

def initialize(hosts: nil, log_level: nil, recipe_path: nil, ssh_options: nil, variables_path: nil)
  @hosts = hosts
  @log_level = log_level
  @recipe_path = recipe_path
  @ssh_options = ssh_options
  @variables_path = variables_path
end

Instance Method Details

#callObject



28
29
30
31
# File 'lib/serverkit/actions/base.rb', line 28

def call
  setup
  run
end