Class: Settei::Generators::Rails

Inherits:
Object
  • Object
show all
Defined in:
lib/settei/generators/rails.rb

Instance Method Summary collapse

Constructor Details

#initialize(app_path:) ⇒ Rails

Returns a new instance of Rails.


4
5
6
7
8
9
# File 'lib/settei/generators/rails.rb', line 4

def initialize(app_path:)
  @app_path = app_path

  spec = Gem::Specification.find_by_name("settei")
  @gem_path = spec.gem_dir
end

Instance Method Details

#runObject


11
12
13
14
15
16
17
# File 'lib/settei/generators/rails.rb', line 11

def run
  create_setting_rb
  create_ymls
  update_application_rb
  update_gitignore
  update_deploy_rb
end