class Staticpress::Pusher

Public Class Methods

push() click to toggle source
# File lib/staticpress/pusher.rb, line 10
def self.push
  pusher = new

  raise Staticpress::Error, 'Nothing to deploy' unless (Staticpress.blog_path + config.destination_path).directory?
  raise Staticpress::Error, 'Deployment strategy not found' unless pusher.respond_to? config.deployment_strategy

  pusher.send config.deployment_strategy
end

Public Instance Methods

custom() click to toggle source
# File lib/staticpress/pusher.rb, line 6
def custom
  system config.deployment_strategies.custom
end