Skip to content

Commit

Permalink
Add "--version" option.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdub committed Oct 14, 2015
1 parent 6f27e93 commit 4900728
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion bin/stackup
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ $LOAD_PATH << File.expand_path("../../lib", __FILE__)

require "clamp"
require "console_logger"
require "stackup"
require "multi_json"
require "stackup"
require "stackup/version"
require "yaml"

Clamp do
Expand All @@ -19,6 +20,11 @@ Clamp do

option "--debug", :flag, "enable debugging"

option ["--version"], :flag, "display version" do
puts "stackup v#{Stackup::VERSION}"
exit 0
end

parameter "NAME", "Name of stack", :attribute_name => :stack_name

def run(arguments)
Expand Down
5 changes: 5 additions & 0 deletions lib/stackup/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Stackup

VERSION = "0.5.0"

end
4 changes: 3 additions & 1 deletion stackup.gemspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require "stackup/version"

Gem::Specification.new do |spec|

spec.name = "stackup"
spec.version = "0.4.0"
spec.version = Stackup::VERSION
spec.authors = ["Mike Williams", "Arvind Kunday"]
spec.email = ["[email protected]", "[email protected]"]
spec.summary = "Manage CloudFormation stacks"
Expand Down

0 comments on commit 4900728

Please sign in to comment.