Class: Pod::Command::Vemars::Components
- Inherits:
-
Pod::Command::Vemars
- Object
- Pod::Command
- Pod::Command::Vemars
- Pod::Command::Vemars::Components
- Defined in:
- lib/cocoapods-vemars/command/vemars/components.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Components
constructor
A new instance of Components.
- #run ⇒ Object
- #validate! ⇒ Object
Methods inherited from Pod::Command::Vemars
Constructor Details
#initialize(argv) ⇒ Components
Returns a new instance of Components.
24 25 26 27 28 29 30 |
# File 'lib/cocoapods-vemars/command/vemars/components.rb', line 24 def initialize(argv) baseline = argv.shift_argument service_url = argv.option('service_url',nil) @api = Components_api.new(baseline,service_url) super @additional_args = argv.remainder! end |
Class Method Details
.options ⇒ Object
18 19 20 21 22 |
# File 'lib/cocoapods-vemars/command/vemars/components.rb', line 18 def self. = [ ['--service_url=SERVICE_URL', 'url of vemars CLI service.'] ] end |
Instance Method Details
#run ⇒ Object
37 38 39 40 41 42 |
# File 'lib/cocoapods-vemars/command/vemars/components.rb', line 37 def run components = @api.getComponents().select do |components| components.name != "ve_Template_iOS" end components.each do |component| component.to_s() end end |
#validate! ⇒ Object
32 33 34 35 |
# File 'lib/cocoapods-vemars/command/vemars/components.rb', line 32 def validate! @api.validate! super end |