shiv 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/shiv.rb +2 -6
  3. data/shiv.gemspec +12 -12
  4. metadata +10 -10
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -3,8 +3,6 @@ require 'chef/knife'
3
3
  require 'chef/config'
4
4
 
5
5
  module Shiv
6
- PROVIDERS = ['ec2', 'rackspace']
7
-
8
6
  def self.edit(command)
9
7
  configure
10
8
  nodes.each do |node|
@@ -19,9 +17,7 @@ module Shiv
19
17
 
20
18
  def self.hostname_from(node)
21
19
  node = Chef::Node.load(node)
22
- hostnames = (PROVIDERS & node.keys).map do |provider|
23
- node[provider]['public_hostname']
24
- end.compact.first
20
+ node['cloud']['public_hostname']
25
21
  end
26
22
 
27
23
  def self.configure
@@ -37,4 +33,4 @@ class Chef
37
33
  end
38
34
  end
39
35
  end
40
- end
36
+ end
@@ -4,15 +4,15 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{shiv}
8
- s.version = "0.1.2"
7
+ s.name = "shiv"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{vanstee}]
12
- s.date = %q{2011-09-08}
13
- s.description = %q{Shiv is a quick and dirty hack to use chef node names in place of their hostnames.}
14
- s.email = %q{vanstee@highgroove.com}
15
- s.executables = [%q{shiv}]
11
+ s.authors = ["vanstee"]
12
+ s.date = "2011-10-05"
13
+ s.description = "Shiv is a quick and dirty hack to use chef node names in place of their hostnames."
14
+ s.email = "vanstee@highgroove.com"
15
+ s.executables = ["shiv"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
18
  "README.md"
@@ -31,11 +31,11 @@ Gem::Specification.new do |s|
31
31
  "test/helper.rb",
32
32
  "test/test_shiv.rb"
33
33
  ]
34
- s.homepage = %q{http://github.com/vanstee/shiv}
35
- s.licenses = [%q{MIT}]
36
- s.require_paths = [%q{lib}]
37
- s.rubygems_version = %q{1.8.6}
38
- s.summary = %q{Shiv is a quick and dirty hack to use chef node names in place of their hostnames.}
34
+ s.homepage = "http://github.com/vanstee/shiv"
35
+ s.licenses = ["MIT"]
36
+ s.require_paths = ["lib"]
37
+ s.rubygems_version = "1.8.10"
38
+ s.summary = "Shiv is a quick and dirty hack to use chef node names in place of their hostnames."
39
39
 
40
40
  if s.respond_to? :specification_version then
41
41
  s.specification_version = 3
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shiv
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - vanstee
@@ -15,10 +15,9 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-08 00:00:00 Z
18
+ date: 2011-10-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- type: :runtime
22
21
  requirement: &id001 !ruby/object:Gem::Requirement
23
22
  none: false
24
23
  requirements:
@@ -31,8 +30,8 @@ dependencies:
31
30
  version_requirements: *id001
32
31
  name: chef
33
32
  prerelease: false
33
+ type: :runtime
34
34
  - !ruby/object:Gem::Dependency
35
- type: :development
36
35
  requirement: &id002 !ruby/object:Gem::Requirement
37
36
  none: false
38
37
  requirements:
@@ -45,8 +44,8 @@ dependencies:
45
44
  version_requirements: *id002
46
45
  name: shoulda
47
46
  prerelease: false
48
- - !ruby/object:Gem::Dependency
49
47
  type: :development
48
+ - !ruby/object:Gem::Dependency
50
49
  requirement: &id003 !ruby/object:Gem::Requirement
51
50
  none: false
52
51
  requirements:
@@ -61,8 +60,8 @@ dependencies:
61
60
  version_requirements: *id003
62
61
  name: bundler
63
62
  prerelease: false
64
- - !ruby/object:Gem::Dependency
65
63
  type: :development
64
+ - !ruby/object:Gem::Dependency
66
65
  requirement: &id004 !ruby/object:Gem::Requirement
67
66
  none: false
68
67
  requirements:
@@ -77,8 +76,8 @@ dependencies:
77
76
  version_requirements: *id004
78
77
  name: jeweler
79
78
  prerelease: false
80
- - !ruby/object:Gem::Dependency
81
79
  type: :development
80
+ - !ruby/object:Gem::Dependency
82
81
  requirement: &id005 !ruby/object:Gem::Requirement
83
82
  none: false
84
83
  requirements:
@@ -91,6 +90,7 @@ dependencies:
91
90
  version_requirements: *id005
92
91
  name: rcov
93
92
  prerelease: false
93
+ type: :development
94
94
  description: Shiv is a quick and dirty hack to use chef node names in place of their hostnames.
95
95
  email: vanstee@highgroove.com
96
96
  executables:
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  requirements: []
143
143
 
144
144
  rubyforge_project:
145
- rubygems_version: 1.8.6
145
+ rubygems_version: 1.8.10
146
146
  signing_key:
147
147
  specification_version: 3
148
148
  summary: Shiv is a quick and dirty hack to use chef node names in place of their hostnames.