Module: Pulsar::Helpers::Capistrano

Defined in:
lib/pulsar/helpers/capistrano.rb

Defined Under Namespace

Classes: DSL

Instance Method Summary collapse

Instance Method Details

#from_application_path?Boolean

This method can be called directly inside capistrano configurations but needs:

defer { from_application_path? }

otherwise capistrano will interpret it as a variable and error out

Returns:

  • (Boolean)


38
39
40
# File 'lib/pulsar/helpers/capistrano.rb', line 38

def from_application_path?
  ENV.key?('APP_PATH')
end

#load_recipes(opts = {}, &block) ⇒ Object



42
43
44
# File 'lib/pulsar/helpers/capistrano.rb', line 42

def load_recipes(opts = {}, &block)
  DSL.new(self, opts, &block)
end