Class: Photish::Command::Base
- Inherits:
-
Object
- Object
- Photish::Command::Base
- Includes:
- Log::Loggable, Log::SafeBlock
- Defined in:
- lib/photish/command/base.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(runtime_config) ⇒ Base
constructor
A new instance of Base.
Methods included from Log::SafeBlock
Methods included from Log::Loggable
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
#execute ⇒ Object
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 |