Class: Pod::Command::Lib::Schoutedenapus
- Inherits:
-
Pod::Command::Lib
- Object
- Pod::Command::Lib
- Pod::Command::Lib::Schoutedenapus
- Defined in:
- lib/cocoapods-schoutedenapus/command/schoutedenapus.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Schoutedenapus
constructor
A new instance of Schoutedenapus.
- #run ⇒ Object
- #validate! ⇒ Object
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
#run ⇒ Object
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 |