Class: Ella::GemfileGenerator

Inherits:
Generator show all
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

#initialize

Constructor Details

This class inherits a constructor from Ella::Generator

Instance Method Details

#runObject



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