Class: Pod::Command::JxedtCommand

Inherits:
Pod::Command show all
Defined in:
lib/cocoapods-jxedt/command/jxedt.rb,
lib/cocoapods-jxedt/command/header/header.rb,
lib/cocoapods-jxedt/command/options/options.rb,
lib/cocoapods-jxedt/command/statistics/statistics.rb

Direct Known Subclasses

Header, Options, Statistics

Defined Under Namespace

Classes: Header, Options, Statistics

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ JxedtCommand

Returns a new instance of JxedtCommand.



23
24
25
26
# File 'lib/cocoapods-jxedt/command/jxedt.rb', line 23

def initialize(argv)
  @version = argv.flag?('version', false)
  super
end

Class Method Details

.optionsObject



17
18
19
20
21
# File 'lib/cocoapods-jxedt/command/jxedt.rb', line 17

def self.options
  [
    ['--version', 'Show cocoapods-jxedt version'],
  ].concat(super)
end

Instance Method Details

#runObject



37
38
# File 'lib/cocoapods-jxedt/command/jxedt.rb', line 37

def run
end

#validate!Object



28
29
30
31
32
33
34
35
# File 'lib/cocoapods-jxedt/command/jxedt.rb', line 28

def validate!
  if @version
    require 'cocoapods-jxedt/gem_version'
    puts "#{CocoapodsJxedt::VERSION}"
    return
  end
  super
end