Class: BumperPusher::Pusher
- Inherits:
-
Object
- Object
- BumperPusher::Pusher
- Defined in:
- lib/bumper_pusher.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize ⇒ Pusher
constructor
A new instance of Pusher.
Constructor Details
#initialize ⇒ Pusher
Returns a new instance of Pusher.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/bumper_pusher.rb', line 10 def initialize @options = BumperPusher::Parser.new. @options.freeze @parser = BumperPusher::Bumper.new(@options) if @options[:revert] @parser.revert_last_bump else @parser.run_bumping_script end end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/bumper_pusher.rb', line 9 def @options end |