lib/minke/tasks/fetch.rb in minke-1.9.7 vs lib/minke/tasks/fetch.rb in minke-1.9.8
- old
+ new
@@ -2,12 +2,19 @@
module Tasks
class Fetch < Task
def run args = nil
puts "## Update dependencies"
+
+ puts '### Install gems'
+ @system_runner.execute('bundle install -j3 && bundle update')
+
+ puts '### Install generator dependencies'
run_with_block do
- @generator_settings.build_settings.build_commands.fetch.each do |command|
- run_command_in_container command
+ if @generator_settings.build_settings.build_commands.fetch != nil
+ @generator_settings.build_settings.build_commands.fetch.each do |command|
+ run_command_in_container command
+ end
end
end
end
end