Class: Yoker::Generators::VersionManager::Rvm
- Inherits:
-
Object
- Object
- Yoker::Generators::VersionManager::Rvm
- Defined in:
- lib/yoker/generators/version_manager/rvm.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#shell ⇒ Object
readonly
Returns the value of attribute shell.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(config, shell) ⇒ Rvm
constructor
A new instance of Rvm.
Constructor Details
#initialize(config, shell) ⇒ Rvm
Returns a new instance of Rvm.
9 10 11 12 |
# File 'lib/yoker/generators/version_manager/rvm.rb', line 9 def initialize(config, shell) @config = config @shell = shell end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/yoker/generators/version_manager/rvm.rb', line 7 def config @config end |
#shell ⇒ Object (readonly)
Returns the value of attribute shell.
7 8 9 |
# File 'lib/yoker/generators/version_manager/rvm.rb', line 7 def shell @shell end |
Instance Method Details
#generate ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/yoker/generators/version_manager/rvm.rb', line 14 def generate generate_rvmrc generate_ruby_version_file if needs_ruby_version_file? generate_ruby_gemset_file generate_gemrc generate_bundler_config if needs_bundler_config? create_rvm_setup_script end |