Skip to content

Commit 6942872

Browse files
author
Matthew Saginario
committed
working on skip_add_component message
1 parent 42056d5 commit 6942872

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/rails-hyperstack/lib/generators/hyperstack/install_generator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def report
185185
private
186186

187187
def skip_adding_component?
188-
options['hotloader-only'] || options['webpack-only'] || options['hyper-model-only'] || existing_rails_app?
188+
@skip_adding_component ||= options['hotloader-only'] || options['webpack-only'] || options['hyper-model-only'] || existing_rails_app?
189189
end
190190

191191
def skip_hotloader?
@@ -203,7 +203,7 @@ def skip_hyper_model?
203203
def existing_rails_app?
204204
#check to see if there are any routes set up
205205
route_file = File.join('config', 'routes.rb')
206-
206+
puts "***********************************exisiting_rails_app"
207207
count = File.foreach(route_file).inject(0) do | c, line |
208208
line = line.strip
209209

0 commit comments

Comments
 (0)