Class: Bard::CLI::Provision
- Defined in:
- lib/bard/cli/provision.rb
Constant Summary collapse
- STEPS =
%w[ SSH User AuthorizedKeys Swapfile Apt MySQL Repo MasterKey RVM App Passenger HTTP LogRotation Data Deploy ]
Instance Method Summary collapse
Methods inherited from Command
Instance Method Details
#provision(ssh_url = config[:production].ssh) ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/bard/cli/provision.rb', line 25 def provision ssh_url=config[:production].ssh # unfreeze the string for later mutation ssh_url = ssh_url.dup [:steps].each do |step| require "bard/provision/#{step.downcase}" Bard::Provision.const_get(step).call(config, ssh_url) end end |