Class: VPL::Command::Scan::All

Inherits:
VPL::Command::Scan show all
Defined in:
lib/vcpkg_pipeline/command/scan/all.rb

Overview

VPL::Command::Scan::All

Instance Attribute Summary

Attributes inherited from VPL::Command

#argv_extension

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from VPL::Command

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.



24
25
26
27
28
# File 'lib/vcpkg_pipeline/command/scan/all.rb', line 24

def initialize(argv)
  @path = argv.shift_argument || Dir.pwd

  super
end

Class Method Details

.optionsObject



20
21
22
# File 'lib/vcpkg_pipeline/command/scan/all.rb', line 20

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

Instance Method Details

#runObject



30
31
32
33
34
35
36
37
38
# File 'lib/vcpkg_pipeline/command/scan/all.rb', line 30

def run
  scanner = Scanner.new(@path)

  VPL.info("Debug: #{ENV['Debug'] ? true : false}")
  VPL.info("Git: #{scanner.git}")
  VPL.info("CMake: #{scanner.cmake}")
  VPL.info("VCPort: #{scanner.vcport}")
  VPL.info("Spec: #{scanner.spec}")
end