Class: Capistrano::Configuration
- Inherits:
-
Object
- Object
- Capistrano::Configuration
- Defined in:
- lib/capistrano/novelys/core_extensions.rb
Instance Method Summary collapse
-
#use_default_stack(*args) ⇒ Object
(also: #use_default_stack_and)
Sugar for loading common recipes (+ supplied is present).
-
#use_stack(*args) ⇒ Object
Sugar for loading given recipes.
Instance Method Details
#use_default_stack(*args) ⇒ Object Also known as: use_default_stack_and
Sugar for loading common recipes (+ supplied is present)
9 10 11 12 |
# File 'lib/capistrano/novelys/core_extensions.rb', line 9 def use_default_stack(*args) args = ([:airbrake, :logs, :production_chain, :rbenv, :remote_commands, :stages, :unicorn] + args).uniq use_stack(*args) end |
#use_stack(*args) ⇒ Object
Sugar for loading given recipes
4 5 6 |
# File 'lib/capistrano/novelys/core_extensions.rb', line 4 def use_stack(*args) args.each { |recipes| load "novelys/#{recipes.to_s}" } end |