Class: Pod::Command::Vemars::Baselines

Inherits:
Pod::Command::Vemars show all
Includes:
Concurrent::Async
Defined in:
lib/cocoapods-vemars/command/vemars/baselines.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pod::Command::Vemars

parse

Constructor Details

#initialize(argv) ⇒ Baselines

Returns a new instance of Baselines.



20
21
22
23
24
# File 'lib/cocoapods-vemars/command/vemars/baselines.rb', line 20

def initialize(argv)
  @service_url = argv.option('service_url',nil)
  super
  @additional_args = argv.remainder!
end

Class Method Details

.optionsObject



14
15
16
17
18
# File 'lib/cocoapods-vemars/command/vemars/baselines.rb', line 14

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

Instance Method Details

#runObject



26
27
28
29
# File 'lib/cocoapods-vemars/command/vemars/baselines.rb', line 26

def run
  api = Baselines_api.new(@service_url)
  api.getBaselines
end