Class: Dependaboat::Cli
- Inherits:
-
Object
- Object
- Dependaboat::Cli
- Defined in:
- lib/dependaboat/cli.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
-
#project_id ⇒ Object
readonly
Returns the value of attribute project_id.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*argv) ⇒ Cli
constructor
A new instance of Cli.
- #run ⇒ Object
Constructor Details
#initialize(*argv) ⇒ Cli
Returns a new instance of Cli.
14 15 16 17 18 |
# File 'lib/dependaboat/cli.rb', line 14 def initialize(*argv) @dry_run = false # Default @logger = Dependaboat.logger .parse(argv) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/dependaboat/cli.rb', line 7 def config @config end |
#logger ⇒ Object
Returns the value of attribute logger.
8 9 10 |
# File 'lib/dependaboat/cli.rb', line 8 def logger @logger end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
7 8 9 |
# File 'lib/dependaboat/cli.rb', line 7 def owner @owner end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
7 8 9 |
# File 'lib/dependaboat/cli.rb', line 7 def project @project end |
#project_id ⇒ Object (readonly)
Returns the value of attribute project_id.
7 8 9 |
# File 'lib/dependaboat/cli.rb', line 7 def project_id @project_id end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
7 8 9 |
# File 'lib/dependaboat/cli.rb', line 7 def repo @repo end |
Class Method Details
.run ⇒ Object
10 11 12 |
# File 'lib/dependaboat/cli.rb', line 10 def self.run new(*ARGV).run end |
Instance Method Details
#run ⇒ Object
20 21 22 23 24 25 |
# File 'lib/dependaboat/cli.rb', line 20 def run initialize_project fetch_and_process_alerts logger.info "Run complete." 0 end |