Class: Swiftproj::GenerateXcodeprojCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/swiftproj/commands/generate_xcodeproj_command.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

#command_class, command_name, #get_command, help_message, #initialize, options, #parse_options

Constructor Details

This class inherits a constructor from Swiftproj::Command

Class Method Details

.descriptionObject



3
4
5
# File 'lib/swiftproj/commands/generate_xcodeproj_command.rb', line 3

def self.description()
  return "Generates a xcconfig file from podspec file"
end

Instance Method Details

#run(options) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/swiftproj/commands/generate_xcodeproj_command.rb', line 7

def run(options)
  argv = []
  for key, value in options
    argv.push(key)
    argv.push(value) unless value.nil?
  end
  @core.generate_xcodeproj(argv)
end