Class: Capistrano::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/capup/capistrano/application.rb

Overview

open class and monkey-patching

Instance Method Summary collapse

Constructor Details

#initializeApplication

Returns a new instance of Application.


4
5
6
7
8
# File 'lib/capup/capistrano/application.rb', line 4

def initialize
  super  #@rakefiles = %w{capfile Capfile capfile.rb Capfile.rb} << capfile

  @rakefiles = [capfile]
end

Instance Method Details

#capfileObject

allows the `capup install` task to load without a capfile


11
12
13
# File 'lib/capup/capistrano/application.rb', line 11

def capfile
  File.expand_path(File.join(File.dirname(__FILE__), 'Capfile'))
end

#default_tasksObject


15
16
17
# File 'lib/capup/capistrano/application.rb', line 15

def default_tasks
  %w{install uninstall}
end