Class: PPL::Command::Scan::Version
Class Method Summary
collapse
Instance Method Summary
collapse
#argv_extension, ensure_not_root_or_allowed!, git_version, options_extension, options_extension_hash, run, verify_minimum_git_version!, verify_xcode_license_approved!
Constructor Details
#initialize(argv) ⇒ Version
20
21
22
23
24
25
26
|
# File 'lib/pod-pipeline/command/scan/version.rb', line 20
def initialize(argv)
@path = argv.arguments!
@projectPath = @path.count.zero? ? Pathname.pwd.to_s : @path.first
super
end
|
Class Method Details
.options ⇒ Object
16
17
18
|
# File 'lib/pod-pipeline/command/scan/version.rb', line 16
def self.options
[].concat(super)
end
|
Instance Method Details
#run ⇒ Object
28
29
30
31
32
|
# File 'lib/pod-pipeline/command/scan/version.rb', line 28
def run
PPL::Scanner.new(@projectPath, ['version']).run
puts "#{PPL::Scanner.version}" if PPL::Scanner.version
end
|