Class: WeBee::Commands::Appslib
- Inherits:
-
WeBee::Command
- Object
- WeBee::Command
- WeBee::Commands::Appslib
- Includes:
- Mixlib::CLI
- Defined in:
- lib/webee/commands/appslib.rb
Instance Method Summary collapse
Methods inherited from WeBee::Command
execute, #help, #initialize, list_all, print_help
Constructor Details
This class inherits a constructor from WeBee::Command
Instance Method Details
#run ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/webee/commands/appslib.rb', line 20 def run actions = %w{list-ovfs} if not actions.include? ARGV.first $stderr.puts "Invalid action.\n\nAVAILABLE ACTIONS: #{actions.join(' ')}\n\n" return else #if config[:name].nil? # $stderr.puts 'Invalid Enterprise name.' # $stderr.puts opt_parser.help # return #end begin ::WeBee::OVFPackage.all.each do |p| puts p.productName end rescue Exception => e puts e. end end end |