mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
deploy and bins scripts now rubocop friendly
This commit is contained in:
parent
1f2c12d7da
commit
d25b5ef29e
6 changed files with 21 additions and 22 deletions
|
@ -2,6 +2,7 @@
|
|||
begin
|
||||
load File.expand_path('../spring', __FILE__)
|
||||
rescue LoadError
|
||||
puts 'no spring'
|
||||
end
|
||||
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
||||
require_relative '../config/boot'
|
||||
|
|
1
bin/rake
1
bin/rake
|
@ -2,6 +2,7 @@
|
|||
begin
|
||||
load File.expand_path('../spring', __FILE__)
|
||||
rescue LoadError
|
||||
puts 'no spring'
|
||||
end
|
||||
require_relative '../config/boot'
|
||||
require 'rake'
|
||||
|
|
|
@ -7,9 +7,10 @@ unless defined?(Spring)
|
|||
require 'rubygems'
|
||||
require 'bundler'
|
||||
|
||||
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
|
||||
match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
|
||||
if match
|
||||
ENV['GEM_PATH'] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
|
||||
ENV['GEM_HOME'] = ''
|
||||
ENV['GEM_HOME'] = nil
|
||||
Gem.paths = ENV
|
||||
|
||||
gem 'spring', match[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue