Class: FreeRange::CLI::Deploy

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/freerange/cli/deploy.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



9
10
11
# File 'lib/freerange/cli/deploy.rb', line 9

def self.source_root
  File.expand_path("../templates", __FILE__)
end

Instance Method Details

#setupObject



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