Class: VCLog::CLI::Bump

Inherits:
Abstract show all
Defined in:
lib/vclog/cli/bump.rb

Instance Attribute Summary

Attributes inherited from Abstract

#arguments

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Abstract

inherited, #initialize, #options, #repo, run, #run

Constructor Details

This class inherits a constructor from VCLog::CLI::Abstract

Class Method Details

.termsObject



9
10
11
# File 'lib/vclog/cli/bump.rb', line 9

def self.terms
  ['bump']
end

Instance Method Details

#executeObject



23
24
25
# File 'lib/vclog/cli/bump.rb', line 23

def execute
  puts repo.bump #(version)
end

#parserObject



14
15
16
17
18
19
20
# File 'lib/vclog/cli/bump.rb', line 14

def parser
  super do |opt|
    opt.banner = "Usage: vclog-bump"
    opt.separator(" ")
    opt.separator("Display a bumped version number.")
  end
end