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.
7 8 9 |
# File 'lib/sequelizer/gemfile_modifier.rb', line 7 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/sequelizer/gemfile_modifier.rb', line 5 def @options end |
Instance Method Details
#modify ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/sequelizer/gemfile_modifier.rb', line 11 def modify check_for_gemfile if gemfile_needs_modification? modify_gemfile run_bundle unless ['skip-bundle'] else puts "Gemfile needs no modification" end end |