Class: Ella::GemfileGenerator
- Defined in:
- lib/ella/generator/gemfile_generator.rb
Overview
Generates a Gemfile with the necessary dependencies for an ella project, and runs Bundle to install those dependencies.
Instance Method Summary collapse
Methods inherited from Generator
Constructor Details
This class inherits a constructor from Ella::Generator
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/ella/generator/gemfile_generator.rb', line 7 def run Ella.find_root Ella::Template.new('Gemfile').write Log.newline Log.info('Running Bundle') puts `bundle update` end |