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

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.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.



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

def options
  @options
end