class PPL::Command::Scan
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
PPL::Command::new
# File lib/pod-pipeline/command/scan.rb, line 19 def initialize(argv) @path = argv.arguments! @channels = argv.option('channel', '').split(',') @projectPath = @path.count.zero? ? Pathname.pwd.to_s : @path.first super end
options()
click to toggle source
Calls superclass method
PPL::Command::options
# File lib/pod-pipeline/command/scan.rb, line 13 def self.options [ ['--channel=pod,git,workspace', '扫描内容。(默认扫描所有内容)'] ].concat(super) end
Public Instance Methods
run()
click to toggle source
# File lib/pod-pipeline/command/scan.rb, line 28 def run PPL::Scanner.new(@projectPath, @channels).run puts "Pod: #{PPL::Scanner.podspec}" if PPL::Scanner.podspec puts "Git: remote = #{PPL::Scanner.git.remote}, branch = #{PPL::Scanner.git.branches.current.first}" if PPL::Scanner.git puts "Workspace: #{PPL::Scanner.workspace.path}" if PPL::Scanner.workspace end