Class: Sequelizer::GemfileModifier
- Inherits:
-
Object
- Object
- Sequelizer::GemfileModifier
- Defined in:
- lib/sequelizer/gemfile_modifier.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ GemfileModifier
constructor
A new instance of GemfileModifier.
- #modify ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ GemfileModifier
Returns a new instance of GemfileModifier.
8 9 10 |
# File 'lib/sequelizer/gemfile_modifier.rb', line 8 def initialize( = {}) = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/sequelizer/gemfile_modifier.rb', line 6 def end |
Instance Method Details
#modify ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/sequelizer/gemfile_modifier.rb', line 12 def modify check_for_gemfile if gemfile_needs_modification? modify_gemfile run_bundle unless ['skip-bundle'] else puts 'Gemfile needs no modification' end end |