sahara 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sahara (0.0.3)
4
+ sahara (0.0.4)
5
5
  popen4 (~> 0.1.2)
6
6
  thor (~> 0.14.6)
7
7
  vagrant (~> 0.7.0)
@@ -0,0 +1,12 @@
1
+ Vagrant::Config.run do |config|
2
+
3
+ config.vm.define :one do |admin_config|
4
+ admin_config.vm.box = "maverick64"
5
+ end
6
+
7
+ config.vm.define :two do |fe_config|
8
+ fe_config.vm.box = "maverick64"
9
+ end
10
+
11
+ end
12
+
@@ -0,0 +1,33 @@
1
+ Vagrant::Config.run do |config|
2
+
3
+ # All Vagrant configuration is done here. The most common configuration
4
+ # options are documented and commented below. For a complete reference,
5
+ # please see the online documentation at vagrantup.com.
6
+
7
+ # Every Vagrant virtual environment requires a box to build off of.
8
+ config.vm.box = "maverick64"
9
+
10
+ # Enable provisioning with chef server, specifying the chef server URL,
11
+ # and the path to the validation key (relative to this Vagrantfile).
12
+ #
13
+ # The Opscode Platform uses HTTPS. Substitute your organization for
14
+ # ORGNAME in the URL and validation key.
15
+ #
16
+ # If you have your own Chef Server, use the appropriate URL, which may be
17
+ # HTTP instead of HTTPS depending on your configuration. Also change the
18
+ # validation key to validation.pem.
19
+ #
20
+ #config.vm.provision :chef_server do |chef|
21
+ #chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
22
+ #chef.validation_key_path = "ORGNAME-validator.pem"
23
+ #end
24
+ #
25
+ # If you're using the Opscode platform, your validator client is
26
+ # ORGNAME-validator, replacing ORGNAME with your organization name.
27
+ #
28
+ # IF you have your own Chef Server, the default validation client name is
29
+ # chef-validator, unless you changed the configuration.
30
+ #
31
+ # chef.validation_client_name = "ORGNAME-validator"
32
+ end
33
+
@@ -160,14 +160,20 @@ module Sahara
160
160
  #puts "no selection was done"
161
161
  @vagrant_env.vms.each do |name,vm|
162
162
  #puts "Processing #{name}"
163
- if @vagrant_env.multivm? && name.to_s!="default"
163
+ if @vagrant_env.multivm?
164
+ if name.to_s!="default"
164
165
  if is_vm_created?(name)
165
166
  yield name
166
167
  else
167
168
  puts "[#{name}] - machine needs to be upped first"
168
169
  end
170
+ end
169
171
  else
170
- #skipping default
172
+ if is_vm_created?(name)
173
+ yield name
174
+ else
175
+ puts "[#{name}] - machine needs to be upped first"
176
+ end
171
177
  end
172
178
  end
173
179
  else
@@ -1,3 +1,3 @@
1
1
  module Sahara
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sahara
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Patrick Debois
@@ -98,6 +98,8 @@ files:
98
98
  - Gemfile.lock
99
99
  - README.md
100
100
  - Rakefile
101
+ - Vagrantfile.multi
102
+ - Vagrantfile.single
101
103
  - lib/sahara.rb
102
104
  - lib/sahara/command.rb
103
105
  - lib/sahara/session.rb