diff --git a/bin/cap b/bin/cap index b8385128..5f4773b2 100755 --- a/bin/cap +++ b/bin/cap @@ -1,3 +1,3 @@ #!/usr/bin/env ruby -require 'capistrano' +require 'capistrano/all' Capistrano::Application.new.run diff --git a/lib/capistrano.rb b/lib/capistrano.rb index 88e5f631..e69de29b 100644 --- a/lib/capistrano.rb +++ b/lib/capistrano.rb @@ -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 diff --git a/lib/capistrano/all.rb b/lib/capistrano/all.rb new file mode 100644 index 00000000..87dbc75b --- /dev/null +++ b/lib/capistrano/all.rb @@ -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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5adacbfc..609686a7 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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,