Class: VPL::Command::Update::VCPort

Inherits:
VPL::Command::Update show all
Defined in:
lib/vcpkg_pipeline/command/update/vcport.rb

Overview

VPL::Command::Update::VCPort

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) ⇒ VCPort

Returns a new instance of VCPort.



26
27
28
29
30
# File 'lib/vcpkg_pipeline/command/update/vcport.rb', line 26

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

  super
end

Class Method Details

.optionsObject



20
21
22
23
24
# File 'lib/vcpkg_pipeline/command/update/vcport.rb', line 20

def self.options
  [
    ['--output=./', '项目打包的输出目录。(默认使用项目 根目录/build)']
  ].concat(super)
end

Instance Method Details

#runObject



32
33
34
35
36
# File 'lib/vcpkg_pipeline/command/update/vcport.rb', line 32

def run
  updater = Updater.new(@path)

  updater.update_vcport
end