Sha256: a743f4bba1540e18078d0a57ec51abbc8d0d6b5823e911d5b0c2f1217af7765e
Contents?: true
Size: 777 Bytes
Versions: 1
Compression:
Stored size: 777 Bytes
Contents
require "licensed" require "thor" module Licensed class CLI < Thor desc "cache", "Cache the licenses of dependencies" method_option :force, :type => :boolean, :desc => "Overwrite licenses even if version has not changed." method_option :offline, :type => :boolean, :desc => "Do not make network calls." def cache Licensed.use_github = false if options[:offline] run Licensed::Command::Cache.new(config), force: options[:force] end desc "verify", "Verify licenses of dependencies" def verify run Licensed::Command::Verify.new(config) end private def config @config ||= Configuration.new end def run(command, *args) command.run(*args) exit command.success? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
licensed-0.6.0 | lib/licensed/cli.rb |