Class: Bundler::AutoUpdate::Updater
- Inherits:
-
Object
- Object
- Bundler::AutoUpdate::Updater
- Defined in:
- lib/bundler_auto_update.rb
Overview
class CLI
Constant Summary collapse
- DEFAULT_TEST_COMMAND =
"rake"
Instance Attribute Summary collapse
-
#test_command ⇒ Object
readonly
Returns the value of attribute test_command.
Instance Method Summary collapse
- #auto_update! ⇒ Object
-
#initialize(test_command = nil) ⇒ Updater
constructor
A new instance of Updater.
Constructor Details
#initialize(test_command = nil) ⇒ Updater
Returns a new instance of Updater.
27 28 29 |
# File 'lib/bundler_auto_update.rb', line 27 def initialize(test_command = nil) @test_command = test_command || DEFAULT_TEST_COMMAND end |
Instance Attribute Details
#test_command ⇒ Object (readonly)
Returns the value of attribute test_command.
25 26 27 |
# File 'lib/bundler_auto_update.rb', line 25 def test_command @test_command end |
Instance Method Details
#auto_update! ⇒ Object
31 32 33 34 35 |
# File 'lib/bundler_auto_update.rb', line 31 def auto_update! gemfile.gems.each do |gem| GemUpdater.new(gem, gemfile, test_command).auto_update end end |