Class: Pu::Core::RubyGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
PlutoniumGenerators::Generator
Defined in:
lib/generators/pu/core/ruby/ruby_generator.rb

Instance Method Summary collapse

Methods included from PlutoniumGenerators::Generator

included

Methods included from PlutoniumGenerators::Concerns::Logger

#debug, #error, #exception, #info, #success, #warn

Methods included from PlutoniumGenerators::Concerns::Config

#read_config, #write_config

Instance Method Details

#startObject



15
16
17
18
19
20
21
# File 'lib/generators/pu/core/ruby/ruby_generator.rb', line 15

def start
  set_ruby_version! version
  say "Ruby version set to #{version}"
  say "Run `bundle install` to update your dependencies"
rescue => e
  exception "#{self.class} failed:", e
end