Class: Capistrano::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/novelys/core_extensions.rb

Instance Method Summary collapse

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