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

Merge pull request #1617 from will-in-wi/rubocop_special_global_vars

Enable SpecialGlobalVars cop
This commit is contained in:
Lee Hambley 2016-03-07 13:12:36 +01:00
commit 5e266d56e2
4 changed files with 6 additions and 5 deletions

View file

@ -61,8 +61,6 @@ Style/Not:
Enabled: false Enabled: false
Style/RescueModifier: Style/RescueModifier:
Enabled: false Enabled: false
Style/SpecialGlobalVars:
Enabled: false
Style/ModuleFunction: Style/ModuleFunction:
Enabled: false Enabled: false
Style/BlockEndNewline: Style/BlockEndNewline:

View file

@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
gem.summary = "Capistrano - Welcome to easy deployment with Ruby over SSH" gem.summary = "Capistrano - Welcome to easy deployment with Ruby over SSH"
gem.homepage = "http://capistranorb.com/" gem.homepage = "http://capistranorb.com/"
gem.files = `git ls-files`.split($/) gem.files = `git ls-files -z`.split("\x0")
gem.executables = %w(cap capify) gem.executables = %w(cap capify)
gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"] gem.require_paths = ["lib"]

View file

@ -1,3 +1,5 @@
require "English"
module VagrantHelpers module VagrantHelpers
extend self extend self
@ -19,7 +21,7 @@ module VagrantHelpers
puts "[vagrant] #{line}" puts "[vagrant] #{line}"
end end
end end
$? $CHILD_STATUS
end end
def run_vagrant_command(command) def run_vagrant_command(command)

View file

@ -1,3 +1,4 @@
require "English"
require "fileutils" require "fileutils"
require "pathname" require "pathname"
@ -91,7 +92,7 @@ module TestApp
Dir.chdir(test_app_path) do Dir.chdir(test_app_path) do
output = %x[#{command}] output = %x[#{command}]
end end
[$?.success?, output] [$CHILD_STATUS.success?, output]
end end
def stage def stage