Class: Schmersion::Releaser

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

Constant Summary collapse

COLORS =
[:blue, :red, :yellow, :magenta, :green, :cyan].freeze

Instance Method Summary collapse

Constructor Details

#initialize(repo, **options) ⇒ Releaser

Returns a new instance of Releaser.



10
11
12
13
14
# File 'lib/schmersion/releaser.rb', line 10

def initialize(repo, **options)
  @repo = repo
  @options = options
  @exports = {}
end

Instance Method Details

#releaseObject



16
17
18
19
20
21
22
23
24
# File 'lib/schmersion/releaser.rb', line 16

def release
  check_for_for_existing_version
  generate_exports
  preview_exports
  save_exports
  commit
  tag
  display_prompt
end