Class: Dply::Cli::Depcheck

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/dply/cli/depcheck.rb

Instance Method Summary collapse

Methods included from Helper

#cmd, #error, #git, #logger, #sh, #symlink

Constructor Details

#initialize(argv) ⇒ Depcheck

Returns a new instance of Depcheck.



10
11
12
# File 'lib/dply/cli/depcheck.rb', line 10

def initialize(argv)
  @argv = argv
end

Instance Method Details

#runObject



14
15
16
17
18
19
# File 'lib/dply/cli/depcheck.rb', line 14

def run
  tar_path = @argv.shift
  error "tar path not specified" if not tar_path
  deplist = Deplist.new(tar_path)
  deplist.verify!
end