Skip to content

Commit

Permalink
Merge pull request #217 from jeunito/feat/spork-version
Browse files Browse the repository at this point in the history
add knife spork version
  • Loading branch information
jonlives authored Oct 12, 2017
2 parents b2d2459 + 4cc8901 commit 7e1d22f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 3 additions & 1 deletion knife-spork.gemspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
$:.push File.expand_path('../lib', __FILE__)

require "knife-spork/version"

Gem::Specification.new do |gem|
gem.name = 'knife-spork'
gem.version = '1.6.3'
gem.version = KnifeSpork::Version::VERSION
gem.authors = ["Jon Cowie", "Katherine Daniels"]
gem.email = ['[email protected]', '[email protected]']
gem.homepage = 'https://github.com/jonlives/knife-spork'
Expand Down
12 changes: 12 additions & 0 deletions lib/chef/knife/spork-version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
require 'chef/knife'
require 'knife-spork/version'

module KnifeSpork
class SporkVersion < Chef::Knife
banner 'knife spork version'

def run
ui.info KnifeSpork::Version::VERSION
end
end
end
5 changes: 5 additions & 0 deletions lib/knife-spork/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module KnifeSpork
module Version
VERSION = "1.6.3"
end
end

0 comments on commit 7e1d22f

Please sign in to comment.