hobo_support 1.4.0.pre3 → 1.4.0.pre4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/hobo_support/command.rb +8 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.0.
|
1
|
+
1.4.0.pre4
|
data/lib/hobo_support/command.rb
CHANGED
@@ -113,12 +113,17 @@ gem '#{gem}', '= #{version}'
|
|
113
113
|
if is_hobo
|
114
114
|
file.puts %(
|
115
115
|
require 'generators/hobo_support/thor_shell'
|
116
|
+
require 'bundler'
|
117
|
+
require 'bundler/cli'
|
116
118
|
extend Generators::HoboSupport::ThorShell
|
117
119
|
)
|
118
120
|
case setup_wizard
|
119
121
|
when :setup
|
120
122
|
file.puts %(
|
121
123
|
say 'Running Setup...'
|
124
|
+
Bundler.with_clean_env do
|
125
|
+
run "bundle install"
|
126
|
+
end
|
122
127
|
exec 'rails g hobo:setup_wizard --skip-wizard #{ARGV * ' '} '
|
123
128
|
)
|
124
129
|
when :wizard
|
@@ -127,6 +132,9 @@ say_title "Hobo Setup Wizard"
|
|
127
132
|
if yes_no?("Do you want to start the Setup Wizard now?
|
128
133
|
(Choose 'n' if you need to manually customize any file before running the Wizard.
|
129
134
|
You can run it later with `hobo g setup_wizard` from the application root dir.)")
|
135
|
+
Bundler.with_clean_env do
|
136
|
+
run "bundle install"
|
137
|
+
end
|
130
138
|
exec 'rails g hobo:setup_wizard --no-main-title'
|
131
139
|
else
|
132
140
|
say "Please, remember to run `hobo g setup_wizard` from the application root dir, in order to complete the Setup.", :yellow
|