Class: FreeRange::CLI::Deploy
- Inherits:
-
Thor
- Object
- Thor
- FreeRange::CLI::Deploy
- Includes:
- Thor::Actions
- Defined in:
- lib/freerange/cli/deploy.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/freerange/cli/deploy.rb', line 9 def self.source_root File.("../templates", __FILE__) end |
Instance Method Details
#setup ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/freerange/cli/deploy.rb', line 18 def setup self.name ||= host template 'Capfile.erb', 'Capfile' template 'deploy.rb.erb', 'config/deploy.rb' template 'staging.rb.erb', 'config/deploy/staging.rb' template 'production.rb.erb', 'config/deploy/production.rb' end |