Class: BumperPusher::Pusher

Inherits:
Object
  • Object
show all
Defined in:
lib/bumper_pusher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePusher



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/bumper_pusher.rb', line 11

def initialize
  @options = BumperPusher::Parser.new.parse_options
  @options.freeze

  @parser = BumperPusher::Bumper.new(@options)

  if @options[:revert]
    @parser.revert_last_bump
  else
    @parser.run_bumping_script
  end

end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



10
11
12
# File 'lib/bumper_pusher.rb', line 10

def options
  @options
end