Sha256: d13e902c6bfc33f4113ee53655b4a9d63381bbb938b3c283b9562cd2c68fbd89
Contents?: true
Size: 814 Bytes
Versions: 9
Compression:
Stored size: 814 Bytes
Contents
module Capistrano class Application < Rake::Application def initialize super @name = "cap" @rakefiles = %w{capfile Capfile capfile.rb Capfile.rb} << capfile end def run Rake.application = self super end def sort_options(options) options.push(version) super end def load_rakefile @name = 'cap' super end private # allows the `cap install` task to load without a capfile def capfile File.expand_path(File.join(File.dirname(__FILE__),'..','Capfile')) end def version ['--version', '-V', "Display the program version.", lambda { |value| puts "Capistrano Version: #{Capistrano::VERSION} (Rake Version: #{RAKEVERSION})" exit } ] end end end
Version data entries
9 entries across 9 versions & 1 rubygems