This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

show no stack message

  • Loading branch information...
ddollar committed Mar 19, 2012
1 parent 8855166 commit aa48eba80dc617feae53f6cef3b1fa9b8880e992
Showing with 27 additions and 4 deletions.
  1. +1 −1 Gemfile
  2. +21 −1 Gemfile.lock
  3. +5 −2 lib/mason/cli.rb
View
@@ -2,4 +2,4 @@ source :rubygems
gemspec
-gem "thor"
+gem "vagrant"
View
@@ -7,11 +7,31 @@ PATH
GEM
remote: http://rubygems.org/
specs:
+ archive-tar-minitar (0.5.2)
+ childprocess (0.3.1)
+ ffi (~> 1.0.6)
+ erubis (2.7.0)
+ ffi (1.0.11)
+ i18n (0.6.0)
+ json (1.5.4)
+ log4r (1.1.10)
+ net-scp (1.0.4)
+ net-ssh (>= 1.99.1)
+ net-ssh (2.2.2)
thor (0.14.6)
+ vagrant (1.0.1)
+ archive-tar-minitar (= 0.5.2)
+ childprocess (~> 0.3.1)
+ erubis (~> 2.7.0)
+ i18n (~> 0.6.0)
+ json (~> 1.5.1)
+ log4r (~> 1.1.9)
+ net-scp (~> 1.0.4)
+ net-ssh (~> 2.2.2)
PLATFORMS
ruby
DEPENDENCIES
mason!
- thor
+ vagrant
View
@@ -151,11 +151,14 @@ def uninstall(name)
desc "stacks", "list available stacks"
def stacks
+ stacks = Mason::Stacks.stacks
+
puts "* available stacks"
- Mason::Stacks.vms.each do |name, vm|
- next if name == :default
+ stacks.keys.each do |name|
puts " - #{name} [#{Mason::Stacks.state(name)}]"
end
+
+ puts " - no stacks created, use stacks:create" if stacks.length.zero?
end
class Stacks < Thor

0 comments on commit aa48eba

Please sign in to comment.