mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Add class for getting version
This commit is contained in:
parent
b82d7756de
commit
9b176a7bd5
3 changed files with 11 additions and 2 deletions
|
|
@ -5,12 +5,13 @@ require 'commander'
|
|||
require 'yaml'
|
||||
require 'vmfloaty/auth'
|
||||
require 'vmfloaty/pooler'
|
||||
require 'vmfloaty/version'
|
||||
|
||||
class Vmfloaty
|
||||
include Commander::Methods
|
||||
|
||||
def run
|
||||
program :version, '0.2.5'
|
||||
program :version, Version.get
|
||||
program :description, 'A CLI helper tool for Puppet Labs vmpooler to help you stay afloat'
|
||||
|
||||
config = read_config
|
||||
|
|
|
|||
8
lib/vmfloaty/version.rb
Normal file
8
lib/vmfloaty/version.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
class Version
|
||||
@version = '0.2.6'
|
||||
|
||||
def self.get
|
||||
@version
|
||||
end
|
||||
end
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
Gem::Specification.new do |s|
|
||||
s.name = 'vmfloaty'
|
||||
s.version = '0.2.5'
|
||||
s.version = '0.2.6'
|
||||
s.authors = ['Brian Cain']
|
||||
s.email = ['brian.cain@puppetlabs.com']
|
||||
s.license = 'Apache'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue