Sha256: f889f52a2f0d91ad3007d841b6c419d63e7d786cd6d2ed24523d263916909e99
Contents?: true
Size: 512 Bytes
Versions: 5
Compression:
Stored size: 512 Bytes
Contents
module Staticpress class Pusher extend Staticpress::Helpers include Staticpress::Helpers def custom system config.deployment_strategies.custom end 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 end end
Version data entries
5 entries across 5 versions & 1 rubygems