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.



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

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

Class Attribute Details

.projectObject

Returns the value of attribute project.



46
47
48
# File 'lib/roger/cli.rb', line 46

def project
  @project
end

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/roger/cli.rb', line 48

def exit_on_failure?
  true
end

Instance Method Details

#versionObject



99
100
101
# File 'lib/roger/cli.rb', line 99

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