1require 'package_builder'
 
2
 
3namespace :deploy do
 
4  desc "Build an application package"
 
5  task :build do
 
6    PackageBuilder.build!
 
7  end
 
8
 
 9  desc "Build and deploy the website to the dev stack"
 
10  task :dev do
 
11    PackageBuilder.deploy!(:dev)
 
12  end
 
 
14  desc "Build and deploy the website to the staging stack"
 
15  task :staging do
 
16    PackageBuilder.deploy!(:staging)
 
17  end
 
 
19  desc "Build and deploy the website to the preview stack"
 
20  task :preview do
 
21    PackageBuilder.deploy!(:preview)
 
22  end
 
 
24  desc "Build and deploy the website to the production stack"
 
25  task :production do
 
26    PackageBuilder.deploy!(:production)
 
27  end
 
28end
 
 
30task deploy: 'deploy:staging'