class Devup::CLI::Commands::Command

Attributes

opts[R]

Public Instance Methods

call(**options) click to toggle source
# File lib/devup/cli/commands/command.rb, line 7
def call(**options)
  @opts = options
end

Private Instance Methods

devup() click to toggle source
# File lib/devup/cli/commands/command.rb, line 27
def devup
  require "devup/environment"

  @devup ||= Devup::Environment.new(
    pwd: `pwd`,
    logger: logger
  )
end
log_level() click to toggle source
# File lib/devup/cli/commands/command.rb, line 19
def log_level
  if opts.fetch(:verbose)
    :debug
  else
    :info
  end
end
logger() click to toggle source
# File lib/devup/cli/commands/command.rb, line 15
def logger
  @logger ||= Devup::Logger.build(log_level)
end