Class: Licensed::Commands::Environment

Inherits:
Command
  • Object
show all
Defined in:
lib/licensed/commands/environment.rb

Defined Under Namespace

Classes: AppEnvironment

Instance Attribute Summary

Attributes inherited from Command

#config, #options, #reporter

Instance Method Summary collapse

Methods inherited from Command

#create_reporter, #initialize

Constructor Details

This class inherits a constructor from Licensed::Commands::Command

Instance Method Details

#default_reporter(options) ⇒ Object

Returns the default reporter to use during the command run

options - The options the command was run with

Returns a Licensed::Reporters::StatusReporter



43
44
45
# File 'lib/licensed/commands/environment.rb', line 43

def default_reporter(options)
  Licensed::Reporters::YamlReporter.new
end

#run(**options) ⇒ Object



32
33
34
35
36
# File 'lib/licensed/commands/environment.rb', line 32

def run(**options)
  super do |report|
    report["git_repo"] = Licensed::Git.git_repo?
  end
end