class Libyear::CLI

Public Class Methods

new(argv) click to toggle source
# File lib/libyear/cli.rb, line 8
def initialize(argv)
  deprecate
  validate_arguments(argv)
  @gemfile_path = argv.first
end

Public Instance Methods

run() click to toggle source
# File lib/libyear/cli.rb, line 14
def run
  print Report.new(Query.new(@gemfile_path).execute).to_s
end

Private Instance Methods

deprecate() click to toggle source
# File lib/libyear/cli.rb, line 20
    def deprecate
      $stderr.puts(
        <<-EOS
Deprecated: please use libyear-bundler instead
https://github.com/jaredbeck/libyear-rb/issues/1
Future versions of the libyear gem will run both libyear-bundler and
libyear-npm (or libyear-yarn). How cool would that be?
        EOS
      )
    end
validate_arguments(argv) click to toggle source
# File lib/libyear/cli.rb, line 31
def validate_arguments(argv)
  # todo
end