Class: Staticpress::Pusher

Inherits:
Object
  • Object
show all
Extended by:
Helpers
Includes:
Helpers
Defined in:
lib/staticpress/pusher.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helpers

config, extensionless_basename, extensionless_path, hash_from_array, hash_from_match_data, paginate, settings, spider_map, titleize

Class Method Details

.pushObject

Raises:



10
11
12
13
14
15
16
17
# 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

Instance Method Details

#customObject



6
7
8
# File 'lib/staticpress/pusher.rb', line 6

def custom
  system config.deployment_strategies.custom
end