vagabond 0.2.2 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ ## v0.2.4
2
+ * Use correct sudo within provision action
3
+ * Fix options helper in `destroy` (implicitly fixes `cluster` options)
4
+ * Only print full help if help is the only argument received
5
+
1
6
  ## v0.2.2
2
7
  * Migration to elecksee gem for LXC management
3
8
  * Addition of chef-zero support for local chef server
data/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2013 Chris Roberts <code@chrisroberts.org>
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -9,7 +9,7 @@ require 'vagabond/errors'
9
9
  if(ARGV.include?('--version') || ARGV.include?('-v'))
10
10
  require 'vagabond/vagabond'
11
11
  Vagabond::Vagabond.new.send(:version)
12
- elsif(%w(help --help -h).include?(ARGV.first))
12
+ elsif(%w(help --help -h).include?(ARGV.first) && ARGV.size == 1)
13
13
  puts "-- Vagabond --\n"
14
14
  require 'vagabond/vagabond'
15
15
  Object.send(:remove_const, :ARGV)
@@ -6,7 +6,7 @@ module Vagabond
6
6
  def included(klass)
7
7
  klass.class_eval do
8
8
  class << self
9
- def _cluster_options
9
+ def _destroy_options
10
10
  [
11
11
  [
12
12
  :cluster, :type => :boolean,
@@ -18,7 +18,6 @@ module Vagabond
18
18
  end
19
19
  end
20
20
  end
21
-
22
21
 
23
22
  def _destroy
24
23
  name_required!
@@ -18,7 +18,7 @@ module Vagabond
18
18
 
19
19
  def do_provision
20
20
  ui.info "#{ui.color('Vagabond:', :bold)} Provisioning node: #{ui.color(name, :magenta)}"
21
- com = "sudo knife bootstrap #{lxc.container_ip(10, true)} -d chef-full -N #{name} -i /opt/hw-lxc-config/id_rsa "
21
+ com = "#{sudo} knife bootstrap #{lxc.container_ip(10, true)} -d chef-full -N #{name} -i /opt/hw-lxc-config/id_rsa "
22
22
  com << "--no-host-key-verify --run-list \"#{config[:run_list].join(',')}\" "
23
23
  if(config[:environment])
24
24
  com << "-E #{config[:environment]}"
@@ -10,7 +10,7 @@ end
10
10
  dpkg_autostart 'lxc-net' do
11
11
  allow false
12
12
  end
13
- =end
13
+
14
14
  # Start at 0 and increment up if found
15
15
  unless(node[:network][:interfaces][:lxcbr0])
16
16
  max = node.network.interfaces.map do |name, val|
@@ -31,6 +31,7 @@ unless(node[:network][:interfaces][:lxcbr0])
31
31
  node.set[:lxc][:dhcp_range] = "#{l_net}.2,#{l_net}.199"
32
32
  node.set[:lxc][:dhcp_max] = '199'
33
33
  end
34
+ =end
34
35
 
35
36
  include_recipe 'lxc'
36
37
 
@@ -6,5 +6,5 @@ module Vagabond
6
6
  super(v)
7
7
  end
8
8
  end
9
- VERSION = Version.new('0.2.2', 'drifter')
9
+ VERSION = Version.new('0.2.4', 'train hopper')
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagabond
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-18 00:00:00.000000000 Z
12
+ date: 2013-06-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -207,6 +207,7 @@ files:
207
207
  - lib/vagabond/uploader.rb
208
208
  - lib/vagabond.rb
209
209
  - README.md
210
+ - LICENSE
210
211
  - vagabond.gemspec
211
212
  - bin/vagabond
212
213
  - USAGE.md