Class: AdminModule::Command::Ppm
- Inherits:
-
Thor
- Object
- Thor
- AdminModule::Command::Ppm
- Includes:
- ClientAccess
- Defined in:
- lib/admin_module/command/ppm.rb
Instance Method Summary collapse
Instance Method Details
#dups ⇒ Object
97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/admin_module/command/ppm.rb', line 97 def dups cl = client.ppms data = cl.dups output_method = "output_as_#{[:format]}" if self.respond_to? output_method self.send(output_method, data) else $stderr << "Invalid format: #{[:format]}" end ensure client.logout end |
#export(filepath) ⇒ Object
81 82 83 84 85 86 87 |
# File 'lib/admin_module/command/ppm.rb', line 81 def export filepath cl = client.ppms cl.export filepath ensure client.logout end |
#import(filepath) ⇒ Object
64 65 66 67 68 69 70 |
# File 'lib/admin_module/command/ppm.rb', line 64 def import filepath cl = client.ppms cl.import filepath ensure client.logout end |
#list ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'lib/admin_module/command/ppm.rb', line 45 def list cl = client.ppms list = cl.list list.each { |r| say r; } ensure client.logout end |