Class: Capistrano::Configuration

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

Instance Method Summary collapse

Instance Method Details

#use_novelys(*args) ⇒ Object Also known as: use_novelys_and

Sugar for loading common recipes (+ supplied is present)



9
10
11
12
# File 'lib/capistrano/novelys/core_extensions.rb', line 9

def use_novelys(*args)
  args = ([:airbrake, :logs, :production_chain, :rbenv, :remote_commands, :novelys, :stages] + args).uniq
  use_recipes(*args)
end

#use_recipes(*args) ⇒ Object

Sugar for loading given recipes



4
5
6
# File 'lib/capistrano/novelys/core_extensions.rb', line 4

def use_recipes(*args)
  args.each { |recipes| load "novelys/#{recipes.to_s}" }
end