lib/awestruct/cli/deploy.rb in awestruct-0.5.4.beta1 vs lib/awestruct/cli/deploy.rb in awestruct-0.5.4.rc
- old
+ new
@@ -12,11 +12,11 @@
def initialize(site_config, deploy_config)
@site_config = site_config
@deploy_config = deploy_config
@deploy_config['type'] ||= (is_github? ? :github_pages : :rsync)
- $LOG.info "Deploying to #{deploy_type}" if $LOG.info?
+ $LOG.info "Deploying to #{deploy_type}" if $LOG.info?
end
def deploy_type
deploy_config['type']
end
@@ -29,10 +29,10 @@
$LOG.error "Deployers available for #{::Awestruct::Deployers.instance.collect {|k,v| "#{v} (#{k})"}.join(', ')}" if $LOG.error?
return
end
deployer = deployer_class.new( site_config, deploy_config )
- deployer.run(deploy_config)
+ deployer.run
end
private
def is_github?
deploy_config['host'].to_s == 'github_pages' || deploy_config['host'].to_s == 'github_pages'