Module: Woody::Deployer
- Defined in:
- lib/woody/deployer.rb
Overview
Handles functions relating to deploying the Woody site
Constant Summary collapse
- @@touchedfiles =
[]
Class Method Summary collapse
-
.deploy ⇒ Object
Deploys the Woody site to S3.
Class Method Details
.deploy ⇒ Object
Deploys the Woody site to S3
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/woody/deployer.rb', line 6 def self.deploy puts "Deploying..." Dir.glob "output/**/*" do |item| next if File.directory? item name = item[7..-1] # Remove "output/" next if name == "index.html" # These *must* be left until last next if name == "feed.xml" upload name, item end upload "index.html", "output/index.html" upload "feed.xml", "output/feed.xml" # Purge left over files purge_bucket end |