Class: PPL::Command::Scan::All

Inherits:
PPL::Command::Scan show all
Defined in:
lib/pod-pipeline/command/scan/all.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PPL::Command

#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) ⇒ All

Returns a new instance of All.



20
21
22
23
24
25
26
# File 'lib/pod-pipeline/command/scan/all.rb', line 20

def initialize(argv)
    @path                   = argv.arguments!

    @projectPath = @path.count.zero? ? Pathname.pwd.to_s : @path.first
    
    super
end

Class Method Details

.optionsObject



16
17
18
# File 'lib/pod-pipeline/command/scan/all.rb', line 16

def self.options
    [].concat(super)
end

Instance Method Details

#runObject



28
29
30
31
32
33
34
# File 'lib/pod-pipeline/command/scan/all.rb', line 28

def run
    PPL::Scanner.new(@projectPath, ["all"]).run
    
    puts "Pod: name = #{PPL::Scanner.name}, version = #{PPL::Scanner.version}" if PPL::Scanner.linter
    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