Class: Teleport::GemfileGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/teleport/gemfile.rb

Instance Method Summary collapse

Instance Method Details

#add_gemsObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/generators/teleport/gemfile.rb', line 3

def add_gems
  gem 'russian'
  gem 'puma'
  gem 'haml-rails'
  gem 'therubyracer'

  gem_group :development do
    gem 'quiet_assets'
  end

  Bundler.with_clean_env do
    run "bundle install"
  end
  insert_into_file "config/application.rb", before: "  end\nend\n" do
%Q{
config.time_zone = 'Moscow'
config.i18n.default_locale = :ru

}
  end
end