Class: Pod::Command::JxedtCommand
- Inherits:
-
Pod::Command
show all
- Defined in:
- lib/cocoapods-jxedt/command/jxedt.rb,
lib/cocoapods-jxedt/command/user/user.rb,
lib/cocoapods-jxedt/command/binary/binary.rb,
lib/cocoapods-jxedt/command/header/header.rb,
lib/cocoapods-jxedt/command/options/options.rb,
lib/cocoapods-jxedt/command/binary/command/code.rb,
lib/cocoapods-jxedt/command/binary/command/push.rb,
lib/cocoapods-jxedt/command/binary/command/build.rb,
lib/cocoapods-jxedt/command/binary/command/clean.rb,
lib/cocoapods-jxedt/command/binary/command/fetch.rb,
lib/cocoapods-jxedt/command/binary/command/statistics.rb,
lib/cocoapods-jxedt/command/binary/command/source_project.rb
Defined Under Namespace
Classes: Binary, Header, Options, User
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of JxedtCommand.
24
25
26
27
|
# File 'lib/cocoapods-jxedt/command/jxedt.rb', line 24
def initialize(argv)
@version = argv.flag?('version', false)
super
end
|
Class Method Details
.options ⇒ Object
18
19
20
21
22
|
# File 'lib/cocoapods-jxedt/command/jxedt.rb', line 18
def self.options
[
['--version', 'Show cocoapods-jxedt version'],
].concat(super)
end
|
Instance Method Details
#run ⇒ Object
38
39
|
# File 'lib/cocoapods-jxedt/command/jxedt.rb', line 38
def run
end
|
#validate! ⇒ Object
29
30
31
32
33
34
35
36
|
# File 'lib/cocoapods-jxedt/command/jxedt.rb', line 29
def validate!
if @version
require 'cocoapods-jxedt/gem_version'
puts "#{CocoapodsJxedt::VERSION}"
return
end
super
end
|