Class: PPL::Command::Scan::Remote

Inherits:
PPL::Command::Scan show all
Defined in:
lib/pod-pipeline/command/scan/remote.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) ⇒ Remote

Returns a new instance of Remote.



20
21
22
23
24
25
26
# File 'lib/pod-pipeline/command/scan/remote.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/remote.rb', line 16

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

Instance Method Details

#runObject



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

def run
    PPL::Scanner.new(@projectPath, ['remote']).run
    
    puts "#{PPL::Scanner.remote}" if PPL::Scanner.remote
end