Class: ZendeskAppsTools::Bump

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions, ManifestHandler
Defined in:
lib/zendesk_apps_tools/bump.rb

Constant Summary collapse

SHARED_OPTIONS =
{
  ['commit', '-c'] => false,
  ['message', '-m'] => nil,
  ['tag', '-t'] => false
}

Constants included from ManifestHandler

ManifestHandler::VERSION_PARTS

Instance Attribute Summary

Attributes included from ManifestHandler

#semver

Instance Method Summary collapse

Instance Method Details

#majorObject



19
20
21
22
23
# File 'lib/zendesk_apps_tools/bump.rb', line 19

def major
  semver[:major] += 1
  semver[:minor] = 0
  semver[:patch] = 0
end

#minorObject



27
28
29
30
# File 'lib/zendesk_apps_tools/bump.rb', line 27

def minor
  semver[:minor] += 1
  semver[:patch] = 0
end

#patchObject



34
35
36
# File 'lib/zendesk_apps_tools/bump.rb', line 34

def patch
  semver[:patch] += 1
end