Module: Woody::Deployer
- Included in:
- Woody
- Defined in:
- lib/woody/deployer.rb
Overview
Handles functions relating to deploying the Woody site
Instance Method Summary collapse
-
#deploy ⇒ Object
Deploys the Woody site to S3.
Instance Method Details
#deploy ⇒ Object
Deploys the Woody site to S3
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/woody/deployer.rb', line 5 def deploy puts "Deploying..." Dir.glob dir("output/**/*") do |item| next if File.directory? item item = undir 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 |