class Photish::Command::Deploy
Public Instance Methods
run()
click to toggle source
# File lib/photish/command/deploy.rb, line 4 def run load_all_plugins log.debug "Requested engine: #{engine}" return no_engine_found unless engine && engine_class log.debug "Regenerating site, to ensure fresh copy" regenerate_entire_site log.debug "Deploying with engine #{engine_class}" engine_class.new(config, log).deploy_site end
Private Instance Methods
deploy_plugin_type()
click to toggle source
# File lib/photish/command/deploy.rb, line 42 def deploy_plugin_type Plugin::Type::Deploy end
deploy_plugins()
click to toggle source
# File lib/photish/command/deploy.rb, line 38 def deploy_plugins Plugin::Repository.instance.plugins_for(deploy_plugin_type) end
engine_class()
click to toggle source
# File lib/photish/command/deploy.rb, line 32 def engine_class @engine ||= deploy_plugins.find do |p| p.engine_name == engine end end
no_engine_found()
click to toggle source
# File lib/photish/command/deploy.rb, line 28 def no_engine_found log.debug "No engine found..." end
regenerate_entire_site()
click to toggle source
# File lib/photish/command/deploy.rb, line 23 def regenerate_entire_site Photish::Command::Generate.new(runtime_config) .execute end