Class: Pod::Command::Vemars::Components

Inherits:
Pod::Command::Vemars show all
Defined in:
lib/cocoapods-vemars/command/vemars/components.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pod::Command::Vemars

parse

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

.optionsObject



18
19
20
21
22
# File 'lib/cocoapods-vemars/command/vemars/components.rb', line 18

def self.options
  options = [
    ['--service_url=SERVICE_URL', 'url of vemars CLI service.']
  ]
end

Instance Method Details

#runObject



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