1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Move requires to capistrano/all

This removes the need to set `require: false` in your Gemfile. Should
prevent the issues described in #582 reoccurring.

(also https://github.com/capistrano/rails/pull/15)
This commit is contained in:
seenmyfate 2013-09-13 09:32:27 +01:00
parent f040f12353
commit 447e4ce950
4 changed files with 18 additions and 17 deletions

View file

@ -1,3 +1,3 @@
#!/usr/bin/env ruby
require 'capistrano'
require 'capistrano/all'
Capistrano::Application.new.run

View file

@ -1,15 +0,0 @@
require 'rake'
require 'sshkit'
require 'sshkit/dsl'
Rake.application.options.trace = true
require 'capistrano/version'
require 'capistrano/version_validator'
require 'capistrano/i18n'
require 'capistrano/dsl'
require 'capistrano/application'
require 'capistrano/configuration'
module Capistrano
end

16
lib/capistrano/all.rb Normal file
View file

@ -0,0 +1,16 @@
require 'rake'
require 'sshkit'
require 'sshkit/dsl'
Rake.application.options.trace = true
require 'capistrano/version'
require 'capistrano/version_validator'
require 'capistrano/i18n'
require 'capistrano/dsl'
require 'capistrano/application'
require 'capistrano/configuration'
module Capistrano
end

View file

@ -1,7 +1,7 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'capistrano/all'
require 'rspec'
require 'capistrano'
require 'mocha/api'
# Requires supporting files with custom matchers and macros, etc,