Class: Roger::Cli::Base

Inherits:
Thor
  • Object
show all
Defined in:
lib/roger/cli.rb

Overview

The Roger main entrypoint!

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Base

Returns a new instance of Base.



34
35
36
37
# File 'lib/roger/cli.rb', line 34

def initialize(*args)
  super
  self.class.project ||= initialize_project
end

Class Attribute Details

.projectObject

Returns the value of attribute project.



40
41
42
# File 'lib/roger/cli.rb', line 40

def project
  @project
end

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/roger/cli.rb', line 42

def exit_on_failure?
  true
end

Instance Method Details

#versionObject



93
94
95
# File 'lib/roger/cli.rb', line 93

def version
  shell.say "Roger #{Roger::VERSION}"
end