Class: Photish::Command::Base

Inherits:
Object
  • Object
show all
Includes:
Log::Loggable, Log::SafeBlock
Defined in:
lib/photish/command/base.rb

Direct Known Subclasses

Credits, Deploy, Generate, Host, Init, Version, Worker

Instance Method Summary collapse

Methods included from Log::SafeBlock

#handle_errors

Methods included from Log::Loggable

#log

Constructor Details

#initialize(runtime_config) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/photish/command/base.rb', line 7

def initialize(runtime_config)
  @runtime_config = runtime_config
end

Instance Method Details

#executeObject



11
12
13
14
15
16
# File 'lib/photish/command/base.rb', line 11

def execute
  setup_logging
  handle_errors(self.class.name) do
    run
  end
end