Class: Kontena::Cli::Plugins::ShowCommand
- Inherits:
-
Kontena::Command
- Object
- Clamp::Command
- Kontena::Command
- Kontena::Cli::Plugins::ShowCommand
- Defined in:
- lib/kontena/cli/plugins/show_command.rb
Instance Attribute Summary
Attributes inherited from Kontena::Command
#arguments, #exit_code, #result
Instance Method Summary collapse
Methods inherited from Kontena::Command
banner, callback_matcher, #help_requested?, inherited, #instance, load_subcommand, requires_current_account_token, requires_current_account_token?, requires_current_grid, requires_current_grid?, requires_current_master, requires_current_master?, requires_current_master_token, requires_current_master_token?, #run, #run_callbacks, #verify_current_account_token, #verify_current_grid, #verify_current_master, #verify_current_master_token
Instance Method Details
#execute ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/kontena/cli/plugins/show_command.rb', line 9 def execute require 'yaml' plug = Gem::Specification.find { |g| g.name == name } out = {} out[:path] = plug.gem_dir puts out.to_yaml end |