Class: Prebundle::CLI
- Inherits:
-
Thor
- Object
- Thor
- Prebundle::CLI
- Defined in:
- lib/prebundle/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
5 6 7 |
# File 'lib/prebundle/cli.rb', line 5 def self.exit_on_failure? true end |
Instance Method Details
#all ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/prebundle/cli.rb', line 10 def all gems = ::Prebundle::list_all_gems_in_Gemfile STDERR.puts "# Unless this helped you, please report the issue https://github.com/kuboon/prebundle/issues/new?assignees=kuboon&labels=&template=add-gem-package-info.md&title=[add]" puts Prebundle::distribution_class.new(gems).command puts "# prebundle all | sudo sh" end |
#gem(gemname) ⇒ Object
19 20 21 22 23 |
# File 'lib/prebundle/cli.rb', line 19 def gem(gemname) STDERR.puts "# Unless this helped you, please report the issue https://github.com/kuboon/prebundle/issues/new?assignees=kuboon&labels=&template=add-gem-package-info.md&title=[add]" puts Prebundle::distribution_class.new([gemname]).command puts "# prebundle gem #{gemname} | sudo sh" end |