Class: Bundler::AutoUpdate::CLI
- Inherits:
-
Object
- Object
- Bundler::AutoUpdate::CLI
- Defined in:
- lib/bundler_auto_update.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ CLI
constructor
A new instance of CLI.
- #run! ⇒ Object
-
#test_command ⇒ String
Test command from @argv.
Constructor Details
#initialize(argv) ⇒ CLI
Returns a new instance of CLI.
6 7 8 |
# File 'lib/bundler_auto_update.rb', line 6 def initialize(argv) @argv = argv end |
Instance Method Details
#run! ⇒ Object
10 11 12 |
# File 'lib/bundler_auto_update.rb', line 10 def run! Updater.new(test_command).auto_update! end |
#test_command ⇒ String
Returns Test command from @argv.
15 16 17 18 19 |
# File 'lib/bundler_auto_update.rb', line 15 def test_command if @argv.first == '-c' @argv[1..-1].join(' ') end end |