gemfiles are required but lets still keep the convenience of bundling
This commit is contained in:
parent
323d8d769c
commit
9de092ba5f
2 changed files with 1 additions and 9 deletions
|
@ -28,10 +28,6 @@ module Middleman::Cli
|
|||
:type => :boolean,
|
||||
:default => false,
|
||||
:desc => 'Include a config.ru file'
|
||||
method_option 'skip-gemfile',
|
||||
:type => :boolean,
|
||||
:default => false,
|
||||
:desc => "Don't create a Gemfile"
|
||||
method_option 'skip-bundle',
|
||||
:type => :boolean,
|
||||
:aliases => '-B',
|
||||
|
|
|
@ -62,17 +62,13 @@ module Middleman
|
|||
end
|
||||
|
||||
class_option :'skip-bundle', :type => :boolean, :default => false
|
||||
class_option :'skip-gemfile', :type => :boolean, :default => false
|
||||
|
||||
# Write a Bundler Gemfile file for project
|
||||
# @return [void]
|
||||
def generate_bundler!
|
||||
return if options[:'skip-gemfile']
|
||||
template self.class.gemfile_template, File.join(location, 'Gemfile')
|
||||
|
||||
return if options[:'skip-bundle']
|
||||
inside(location) do
|
||||
::Middleman::Cli::Bundle.new.invoke(:bundle)
|
||||
run('bundle install')
|
||||
end unless ENV['TEST']
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue