class Photish::Command::Base

Attributes

runtime_config[R]

Public Class Methods

new(runtime_config) click to toggle source
# File lib/photish/command/base.rb, line 7
def initialize(runtime_config)
  @runtime_config = runtime_config
end

Public Instance Methods

execute() click to toggle source
# File lib/photish/command/base.rb, line 11
def execute
  setup_logging
  handle_errors(self.class.name) do
    run
  end
end

Protected Instance Methods

load_all_plugins() click to toggle source
# File lib/photish/command/base.rb, line 26
def load_all_plugins
  Plugin::Repository.instance.reload(config)
end

Private Instance Methods

app_settings() click to toggle source
# File lib/photish/command/base.rb, line 32
def app_settings
  @app_settings ||= Config::Settings.new(runtime_config)
end
setup_logging() click to toggle source
# File lib/photish/command/base.rb, line 36
def setup_logging
  Log::Setup.instance.configure(config.logging)
end