Class: Breeze::Initializer
- Inherits:
-
Thor
- Object
- Thor
- Breeze::Initializer
- Includes:
- Thor::Actions
- Defined in:
- lib/breeze/initializer.rb
Instance Method Summary collapse
Instance Method Details
#init(profile = 'rails_and_image_magick') ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/breeze/initializer.rb', line 9 def init(profile='rails_and_image_magick') raise(ArgumentError, "*#{profile}* is not supported") unless profile_exists?(profile) copy_file('Thorfile') copy_file('maintenance.html', "#{config_dir}/maintenance.html") copy_file('user_data.sh', "#{config_dir}/user_data.sh") directories('shared', profile_path(profile)) chmod_600('Thorfile', "#{config_dir}/scripts/credentials.sh") end |