Class: Hotspots
- Inherits:
-
Object
- Object
- Hotspots
- Defined in:
- lib/hotspots.rb,
lib/hotspots/store.rb,
lib/hotspots/logger.rb,
lib/hotspots/version.rb,
lib/hotspots/options_parser.rb,
lib/hotspots/option_based_exit.rb,
lib/hotspots/repository/driver/git.rb,
lib/hotspots/repository/parser/git.rb,
lib/hotspots/repository/command/git.rb
Defined Under Namespace
Modules: OptionBasedExit, Repository Classes: Logger, OptionsParser, Store
Constant Summary collapse
- VERSION =
"1.1.0"- Main =
Provides compatibility with older API These compatibility layers will be removed in the next major release (v2.0)
Hotspots
Instance Attribute Summary collapse
-
#colour ⇒ Object
readonly
Returns the value of attribute colour.
-
#cutoff ⇒ Object
readonly
Returns the value of attribute cutoff.
-
#driver ⇒ Object
readonly
Returns the value of attribute driver.
-
#exit_strategy ⇒ Object
readonly
Returns the value of attribute exit_strategy.
-
#file_filter ⇒ Object
readonly
Returns the value of attribute file_filter.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#message_filters ⇒ Object
readonly
Returns the value of attribute message_filters.
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
-
#store ⇒ Object
readonly
Returns the value of attribute store.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#verbose ⇒ Object
readonly
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Hotspots
constructor
A new instance of Hotspots.
- #output ⇒ Object
Constructor Details
#initialize(opts) ⇒ Hotspots
Returns a new instance of Hotspots.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/hotspots.rb', line 13 def initialize(opts) = Hotspots::OptionsParser..merge(opts) @logger = Hotspots::Logger.new @repository = [:repository] @verbose = [:verbose] @colour = [:colour] @exit_strategy = [:exit_strategy] @time = [:time] @message_filters = [:message_filters] @file_filter = [:file_filter] @cutoff = [:cutoff] end |
Instance Attribute Details
#colour ⇒ Object (readonly)
Returns the value of attribute colour.
9 10 11 |
# File 'lib/hotspots.rb', line 9 def colour @colour end |
#cutoff ⇒ Object (readonly)
Returns the value of attribute cutoff.
9 10 11 |
# File 'lib/hotspots.rb', line 9 def cutoff @cutoff end |
#driver ⇒ Object (readonly)
Returns the value of attribute driver.
9 10 11 |
# File 'lib/hotspots.rb', line 9 def driver @driver end |
#exit_strategy ⇒ Object (readonly)
Returns the value of attribute exit_strategy.
9 10 11 |
# File 'lib/hotspots.rb', line 9 def exit_strategy @exit_strategy end |
#file_filter ⇒ Object (readonly)
Returns the value of attribute file_filter.
9 10 11 |
# File 'lib/hotspots.rb', line 9 def file_filter @file_filter end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
9 10 11 |
# File 'lib/hotspots.rb', line 9 def logger @logger end |
#message_filters ⇒ Object (readonly)
Returns the value of attribute message_filters.
9 10 11 |
# File 'lib/hotspots.rb', line 9 def @message_filters end |
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
9 10 11 |
# File 'lib/hotspots.rb', line 9 def parser @parser end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
9 10 11 |
# File 'lib/hotspots.rb', line 9 def repository @repository end |
#store ⇒ Object (readonly)
Returns the value of attribute store.
9 10 11 |
# File 'lib/hotspots.rb', line 9 def store @store end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
9 10 11 |
# File 'lib/hotspots.rb', line 9 def time @time end |
#verbose ⇒ Object (readonly)
Returns the value of attribute verbose.
9 10 11 |
# File 'lib/hotspots.rb', line 9 def verbose @verbose end |
Instance Method Details
#output ⇒ Object
28 29 30 31 32 |
# File 'lib/hotspots.rb', line 28 def output validate set run end |