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 ⇒ Object
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 ⇒ Object
14 15 16 17 18 |
# File 'lib/bundler_auto_update.rb', line 14 def test_command if @argv.first == '-c' @argv[1..-1].join(' ') end end |