mason 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,16 +5,19 @@ class Mason::Stacks
5
5
 
6
6
  def self.load_vagrant!
7
7
  require "vagrant"
8
+ if Gem::Version.new(Vagrant::VERSION) < Gem::Version.new("1.0.1")
9
+ raise "mason requires vagrant 1.0.1 or higher"
10
+ end
8
11
  build_vagrantfile unless File.exists?(vagrantfile)
9
12
  end
10
13
 
11
14
  def self.vagrant_env(display=false)
15
+ load_vagrant!
12
16
  ui = display ? Vagrant::UI::Basic : nil
13
17
  Vagrant::Environment.new(:vagrantfile_name => vagrantfile, :ui_class => ui)
14
18
  end
15
19
 
16
20
  def self.vms
17
- load_vagrant!
18
21
  vagrant_env.vms
19
22
  end
20
23
 
@@ -1,3 +1,3 @@
1
1
  module Mason
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mason
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70250793015500 !ruby/object:Gem::Requirement
16
+ requirement: &70303791877440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70250793015500
24
+ version_requirements: *70303791877440
25
25
  description: Build things
26
26
  email: ddollar@gmail.com
27
27
  executables: