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

Merge pull request #649 from capistrano/feature/require-less

Move requires to `capistrano/all`
This commit is contained in:
Tom Clements 2013-09-13 06:50:32 -07:00
commit 2dc1627838
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,