Class: Pod::Command::Lib::Schoutedenapus

Inherits:
Pod::Command::Lib show all
Defined in:
lib/cocoapods-schoutedenapus/command/schoutedenapus.rb

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Schoutedenapus

Returns a new instance of Schoutedenapus.



11
12
13
14
# File 'lib/cocoapods-schoutedenapus/command/schoutedenapus.rb', line 11

def initialize(argv)
  @spec = spec_with_path(argv.shift_argument)
  super
end

Instance Method Details

#runObject



21
22
23
# File 'lib/cocoapods-schoutedenapus/command/schoutedenapus.rb', line 21

def run
  File.write('Package.swift', ::Schoutedenapus::Converter.new(@spec).to_s)
end

#validate!Object



16
17
18
19
# File 'lib/cocoapods-schoutedenapus/command/schoutedenapus.rb', line 16

def validate!
  super
  help! 'A podspec is required.' unless @spec
end