Module: VPL

Defined in:
lib/vcpkg_pipeline.rb,
lib/vcpkg_pipeline/command.rb,
lib/vcpkg_pipeline/core/log.rb,
lib/vcpkg_pipeline/core/spec.rb,
lib/vcpkg_pipeline/command/new.rb,
lib/vcpkg_pipeline/command/reg.rb,
lib/vcpkg_pipeline/command/scan.rb,
lib/vcpkg_pipeline/core/scanner.rb,
lib/vcpkg_pipeline/core/updater.rb,
lib/vcpkg_pipeline/core/register.rb,
lib/vcpkg_pipeline/command/update.rb,
lib/vcpkg_pipeline/command/publish.rb,
lib/vcpkg_pipeline/command/reg/add.rb,
lib/vcpkg_pipeline/command/reg/list.rb,
lib/vcpkg_pipeline/command/scan/all.rb,
lib/vcpkg_pipeline/command/scan/name.rb,
lib/vcpkg_pipeline/command/reg/remove.rb,
lib/vcpkg_pipeline/command/update/all.rb,
lib/vcpkg_pipeline/command/update/git.rb,
lib/vcpkg_pipeline/command/scan/branch.rb,
lib/vcpkg_pipeline/command/scan/remote.rb,
lib/vcpkg_pipeline/command/update/spec.rb,
lib/vcpkg_pipeline/command/scan/version.rb,
lib/vcpkg_pipeline/command/update/cmake.rb,
lib/vcpkg_pipeline/command/update/vcport.rb

Overview

VPL

Defined Under Namespace

Classes: Command, Register, Scanner, Spec, Updater

Class Method Summary collapse

Class Method Details

.attribute_str(msg, type) ⇒ Object



5
6
7
# File 'lib/vcpkg_pipeline/core/log.rb', line 5

def self.attribute_str(msg, type)
  "\n\033[#{type}m#{msg}\033[0m\n"
end

.error(msg) ⇒ Object



17
18
19
# File 'lib/vcpkg_pipeline/core/log.rb', line 17

def self.error(msg)
  raise attribute_str("Error: #{msg}!", 41)
end

.info(msg) ⇒ Object



13
14
15
# File 'lib/vcpkg_pipeline/core/log.rb', line 13

def self.info(msg)
  puts attribute_str(msg, 46)
end

.title(msg) ⇒ Object



9
10
11
# File 'lib/vcpkg_pipeline/core/log.rb', line 9

def self.title(msg)
  puts attribute_str("-- #{msg} --", 44)
end