runpuppet 0.5.20 → 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -8,9 +8,8 @@ gem 'facter'
8
8
  # Add dependencies to develop your gem here.
9
9
  # Include everything needed to run rake, tests, features, etc.
10
10
  group :development do
11
- gem "shoulda", ">= 0"
12
- gem "mocha"
13
- gem "bundler", "~> 1.0.0"
14
- gem "jeweler", "~> 1.5.2"
15
- gem "rcov", ">= 0"
11
+ gem "minitest", "4.1.0"
12
+ gem "mocha", '~> 0.12.0'
13
+ gem "bundler", "~> 1.2.0"
14
+ gem "jeweler" #, "~> 1.5.2"
16
15
  end
data/Gemfile.lock CHANGED
@@ -1,28 +1,32 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- facter (1.6.0)
4
+ facter (1.6.14)
5
5
  git (1.2.5)
6
- jeweler (1.5.2)
7
- bundler (~> 1.0.0)
6
+ jeweler (1.8.4)
7
+ bundler (~> 1.0)
8
8
  git (>= 1.2.5)
9
9
  rake
10
- mime-types (1.16)
11
- mocha (0.9.12)
12
- rake (0.9.2)
13
- rcov (0.9.9)
14
- rest-client (1.6.3)
10
+ rdoc
11
+ json (1.7.5)
12
+ metaclass (0.0.1)
13
+ mime-types (1.19)
14
+ minitest (4.1.0)
15
+ mocha (0.12.7)
16
+ metaclass (~> 0.0.1)
17
+ rake (0.9.2.2)
18
+ rdoc (3.12)
19
+ json (~> 1.4)
20
+ rest-client (1.6.7)
15
21
  mime-types (>= 1.16)
16
- shoulda (2.11.3)
17
22
 
18
23
  PLATFORMS
19
24
  ruby
20
25
 
21
26
  DEPENDENCIES
22
- bundler (~> 1.0.0)
27
+ bundler (~> 1.2.0)
23
28
  facter
24
- jeweler (~> 1.5.2)
25
- mocha
26
- rcov
29
+ jeweler
30
+ minitest (= 4.1.0)
31
+ mocha (~> 0.12.0)
27
32
  rest-client
28
- shoulda
data/Rakefile CHANGED
@@ -19,28 +19,18 @@ Jeweler::Tasks.new do |gem|
19
19
  gem.description = %Q{Is the local client to the puppet_controller}
20
20
  gem.email = "roman.heinrich@gmail.com"
21
21
  gem.authors = ["Roman Heinrich"]
22
- # Include your dependencies below. Runtime dependencies are required when using your gem,
23
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
- # gem.add_runtime_dependency 'jabber4r', '> 0.1'
25
- # gem.add_development_dependency 'rspec', '> 1.2.3'
26
22
  end
27
23
  Jeweler::RubygemsDotOrgTasks.new
28
24
 
29
- require 'rake/testtask'
30
- Rake::TestTask.new(:test) do |test|
31
- test.libs << 'lib' << 'test'
32
- test.pattern = 'test/**/test_*.rb'
33
- test.verbose = true
34
- end
35
25
 
36
- require 'rcov/rcovtask'
37
- Rcov::RcovTask.new do |test|
38
- test.libs << 'test'
39
- test.pattern = 'test/**/test_*.rb'
40
- test.verbose = true
26
+ task :default => :test
27
+ require 'rake/testtask'
28
+ Rake::TestTask.new do |t|
29
+ t.libs.push "lib"
30
+ t.test_files = FileList['test/**/*_test.rb']
31
+ t.verbose = true
41
32
  end
42
33
 
43
- task :default => :test
44
34
 
45
35
  require 'rake/rdoctask'
46
36
  Rake::RDocTask.new do |rdoc|
data/runpuppet.gemspec CHANGED
@@ -4,15 +4,15 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{runpuppet}
8
- s.version = "0.5.20"
7
+ s.name = "runpuppet"
8
+ s.version = "1.0.0.rc1"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Roman Heinrich}]
12
- s.date = %q{2012-06-21}
13
- s.description = %q{Is the local client to the puppet_controller}
14
- s.email = %q{roman.heinrich@gmail.com}
15
- s.executables = [%q{runpuppet}]
10
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Roman Heinrich"]
12
+ s.date = "2012-11-09"
13
+ s.description = "Is the local client to the puppet_controller"
14
+ s.email = "roman.heinrich@gmail.com"
15
+ s.executables = ["runpuppet"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
18
  "README.rdoc"
@@ -26,21 +26,15 @@ Gem::Specification.new do |s|
26
26
  "Rakefile",
27
27
  "VERSION",
28
28
  "bin/runpuppet",
29
- "lib/core-ext.rb",
30
29
  "lib/runpuppet.rb",
31
30
  "runpuppet.gemspec",
32
- "test/helper.rb",
33
- "test/test_runpuppet.rb"
34
- ]
35
- s.homepage = %q{http://github.com/dawanda/runpuppet}
36
- s.licenses = [%q{MIT}]
37
- s.require_paths = [%q{lib}]
38
- s.rubygems_version = %q{1.8.6}
39
- s.summary = %q{The counterpart to puppet_controller}
40
- s.test_files = [
41
- "test/helper.rb",
42
- "test/test_runpuppet.rb"
31
+ "test/helper.rb"
43
32
  ]
33
+ s.homepage = "http://github.com/dawanda/runpuppet"
34
+ s.licenses = ["MIT"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = "1.8.24"
37
+ s.summary = "The counterpart to puppet_controller"
44
38
 
45
39
  if s.respond_to? :specification_version then
46
40
  s.specification_version = 3
@@ -48,28 +42,28 @@ Gem::Specification.new do |s|
48
42
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
43
  s.add_runtime_dependency(%q<rest-client>, [">= 0"])
50
44
  s.add_runtime_dependency(%q<facter>, [">= 0"])
51
- s.add_development_dependency(%q<shoulda>, [">= 0"])
52
- s.add_development_dependency(%q<mocha>, [">= 0"])
53
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
54
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
55
- s.add_development_dependency(%q<rcov>, [">= 0"])
45
+ s.add_runtime_dependency(%q<dim>, [">= 0"])
46
+ s.add_development_dependency(%q<minitest>, ["= 4.1.0"])
47
+ s.add_development_dependency(%q<mocha>, ["~> 0.12.0"])
48
+ s.add_development_dependency(%q<bundler>, ["~> 1.2.0"])
49
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
56
50
  else
57
51
  s.add_dependency(%q<rest-client>, [">= 0"])
58
52
  s.add_dependency(%q<facter>, [">= 0"])
59
- s.add_dependency(%q<shoulda>, [">= 0"])
60
- s.add_dependency(%q<mocha>, [">= 0"])
61
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
62
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
63
- s.add_dependency(%q<rcov>, [">= 0"])
53
+ s.add_dependency(%q<dim>, [">= 0"])
54
+ s.add_dependency(%q<minitest>, ["= 4.1.0"])
55
+ s.add_dependency(%q<mocha>, ["~> 0.12.0"])
56
+ s.add_dependency(%q<bundler>, ["~> 1.2.0"])
57
+ s.add_dependency(%q<jeweler>, [">= 0"])
64
58
  end
65
59
  else
66
60
  s.add_dependency(%q<rest-client>, [">= 0"])
67
61
  s.add_dependency(%q<facter>, [">= 0"])
68
- s.add_dependency(%q<shoulda>, [">= 0"])
69
- s.add_dependency(%q<mocha>, [">= 0"])
70
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
71
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
72
- s.add_dependency(%q<rcov>, [">= 0"])
62
+ s.add_dependency(%q<dim>, [">= 0"])
63
+ s.add_dependency(%q<minitest>, ["= 4.1.0"])
64
+ s.add_dependency(%q<mocha>, ["~> 0.12.0"])
65
+ s.add_dependency(%q<bundler>, ["~> 1.2.0"])
66
+ s.add_dependency(%q<jeweler>, [">= 0"])
73
67
  end
74
68
  end
75
69
 
data/test/helper.rb CHANGED
@@ -7,13 +7,9 @@ rescue Bundler::BundlerError => e
7
7
  $stderr.puts "Run `bundle install` to install missing gems"
8
8
  exit e.status_code
9
9
  end
10
- require 'test/unit'
11
- require 'shoulda'
10
+ require 'minitest/autorun'
12
11
  require 'mocha'
13
12
 
14
13
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
15
14
  $LOAD_PATH.unshift(File.dirname(__FILE__))
16
15
  require 'runpuppet'
17
-
18
- class Test::Unit::TestCase
19
- end
metadata CHANGED
@@ -1,13 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runpuppet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 35
5
- prerelease:
4
+ hash: -3127271948
5
+ prerelease: 6
6
6
  segments:
7
+ - 1
7
8
  - 0
8
- - 5
9
- - 20
10
- version: 0.5.20
9
+ - 0
10
+ - rc
11
+ - 1
12
+ version: 1.0.0.rc1
11
13
  platform: ruby
12
14
  authors:
13
15
  - Roman Heinrich
@@ -15,7 +17,7 @@ autorequire:
15
17
  bindir: bin
16
18
  cert_chain: []
17
19
 
18
- date: 2012-06-21 00:00:00 Z
20
+ date: 2012-11-09 00:00:00 Z
19
21
  dependencies:
20
22
  - !ruby/object:Gem::Dependency
21
23
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -27,10 +29,10 @@ dependencies:
27
29
  segments:
28
30
  - 0
29
31
  version: "0"
32
+ requirement: *id001
33
+ prerelease: false
30
34
  name: rest-client
31
35
  type: :runtime
32
- prerelease: false
33
- requirement: *id001
34
36
  - !ruby/object:Gem::Dependency
35
37
  version_requirements: &id002 !ruby/object:Gem::Requirement
36
38
  none: false
@@ -41,10 +43,10 @@ dependencies:
41
43
  segments:
42
44
  - 0
43
45
  version: "0"
46
+ requirement: *id002
47
+ prerelease: false
44
48
  name: facter
45
49
  type: :runtime
46
- prerelease: false
47
- requirement: *id002
48
50
  - !ruby/object:Gem::Dependency
49
51
  version_requirements: &id003 !ruby/object:Gem::Requirement
50
52
  none: false
@@ -55,56 +57,58 @@ dependencies:
55
57
  segments:
56
58
  - 0
57
59
  version: "0"
58
- name: shoulda
59
- type: :development
60
- prerelease: false
61
60
  requirement: *id003
61
+ prerelease: false
62
+ name: dim
63
+ type: :runtime
62
64
  - !ruby/object:Gem::Dependency
63
65
  version_requirements: &id004 !ruby/object:Gem::Requirement
64
66
  none: false
65
67
  requirements:
66
- - - ">="
68
+ - - "="
67
69
  - !ruby/object:Gem::Version
68
- hash: 3
70
+ hash: 59
69
71
  segments:
72
+ - 4
73
+ - 1
70
74
  - 0
71
- version: "0"
72
- name: mocha
73
- type: :development
74
- prerelease: false
75
+ version: 4.1.0
75
76
  requirement: *id004
77
+ prerelease: false
78
+ name: minitest
79
+ type: :development
76
80
  - !ruby/object:Gem::Dependency
77
81
  version_requirements: &id005 !ruby/object:Gem::Requirement
78
82
  none: false
79
83
  requirements:
80
84
  - - ~>
81
85
  - !ruby/object:Gem::Version
82
- hash: 23
86
+ hash: 47
83
87
  segments:
84
- - 1
85
88
  - 0
89
+ - 12
86
90
  - 0
87
- version: 1.0.0
88
- name: bundler
89
- type: :development
90
- prerelease: false
91
+ version: 0.12.0
91
92
  requirement: *id005
93
+ prerelease: false
94
+ name: mocha
95
+ type: :development
92
96
  - !ruby/object:Gem::Dependency
93
97
  version_requirements: &id006 !ruby/object:Gem::Requirement
94
98
  none: false
95
99
  requirements:
96
100
  - - ~>
97
101
  - !ruby/object:Gem::Version
98
- hash: 7
102
+ hash: 31
99
103
  segments:
100
104
  - 1
101
- - 5
102
105
  - 2
103
- version: 1.5.2
104
- name: jeweler
105
- type: :development
106
- prerelease: false
106
+ - 0
107
+ version: 1.2.0
107
108
  requirement: *id006
109
+ prerelease: false
110
+ name: bundler
111
+ type: :development
108
112
  - !ruby/object:Gem::Dependency
109
113
  version_requirements: &id007 !ruby/object:Gem::Requirement
110
114
  none: false
@@ -115,10 +119,10 @@ dependencies:
115
119
  segments:
116
120
  - 0
117
121
  version: "0"
118
- name: rcov
119
- type: :development
120
- prerelease: false
121
122
  requirement: *id007
123
+ prerelease: false
124
+ name: jeweler
125
+ type: :development
122
126
  description: Is the local client to the puppet_controller
123
127
  email: roman.heinrich@gmail.com
124
128
  executables:
@@ -137,11 +141,9 @@ files:
137
141
  - Rakefile
138
142
  - VERSION
139
143
  - bin/runpuppet
140
- - lib/core-ext.rb
141
144
  - lib/runpuppet.rb
142
145
  - runpuppet.gemspec
143
146
  - test/helper.rb
144
- - test/test_runpuppet.rb
145
147
  homepage: http://github.com/dawanda/runpuppet
146
148
  licenses:
147
149
  - MIT
@@ -162,19 +164,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
164
  required_rubygems_version: !ruby/object:Gem::Requirement
163
165
  none: false
164
166
  requirements:
165
- - - ">="
167
+ - - ">"
166
168
  - !ruby/object:Gem::Version
167
- hash: 3
169
+ hash: 25
168
170
  segments:
169
- - 0
170
- version: "0"
171
+ - 1
172
+ - 3
173
+ - 1
174
+ version: 1.3.1
171
175
  requirements: []
172
176
 
173
177
  rubyforge_project:
174
- rubygems_version: 1.8.6
178
+ rubygems_version: 1.8.24
175
179
  signing_key:
176
180
  specification_version: 3
177
181
  summary: The counterpart to puppet_controller
178
- test_files:
179
- - test/helper.rb
180
- - test/test_runpuppet.rb
182
+ test_files: []
183
+
data/lib/core-ext.rb DELETED
@@ -1,8 +0,0 @@
1
- class Array
2
- # [[1,2]] => {1=>2}
3
- def to_hash
4
- hash = {}
5
- each {|k,v| hash[k]=v}
6
- hash
7
- end
8
- end
@@ -1,18 +0,0 @@
1
- require 'helper'
2
-
3
- class TestRunpuppet < Test::Unit::TestCase
4
- context 'Config' do
5
- should "parse the auth info from url" do
6
- Runpuppet::Config.stubs(:config => {'puppet_controller_url' => 'http://user:pass@example.com'})
7
- assert_equal "http://user:pass@example.com", Runpuppet::Config.puppet_controller_url
8
- assert_equal ['user', 'pass'], Runpuppet::Config.puppet_controller_auth
9
- end
10
- end
11
-
12
- context 'Runpuppet' do
13
- should "report facts" do
14
- ec2_facts = [["architecture", "x86_64"], ["arp", "fe:ff:ff:ff:ff:ff"], ["arp_eth0", "fe:ff:ff:ff:ff:ff"], ["domain", "eu-west-1.compute.internal"], ["ec2_ami_id", "ami-7acafc0e"], ["ec2_ami_launch_index", "0"], ["ec2_ami_manifest_path", "(unknown)"], ["ec2_block_device_mapping_ami", "/dev/sda1"], ["ec2_block_device_mapping_ephemeral0", "/dev/sdb"], ["ec2_block_device_mapping_root", "/dev/sda1"], ["ec2_hostname", "ip-10-234-151-254.eu-west-1.compute.internal"], ["ec2_instance_id", "i-cc511dba"], ["ec2_instance_type", "t1.micro"], ["ec2_kernel_id", "aki-4feec43b"], ["ec2_local_hostname", "ip-10-234-151-254.eu-west-1.compute.internal"], ["ec2_local_ipv4", "10.234.151.254"], ["ec2_placement_availability_zone", "eu-west-1a"], ["ec2_profile", "default-paravirtual"], ["ec2_public_hostname", "ec2-46-137-37-20.eu-west-1.compute.amazonaws.com"], ["ec2_public_ipv4", "46.137.37.20"], ["ec2_public_keys_0_openssh_key", "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCn6ld1os3dZkdIjJ0zqOUrZWi9zODc2WEaonlPRjyxqhX5nDYJMFrvKRXAIi41TKxwGXzor55gbLb5GnLDFMHEZwtye9MH4n98DdSFu8Nxb9wZgT1xZ+UE/9+GKVAJq77yIWP5qe6iJe80JQAaO/WbinMoqBZ9YOF2MgPNIUoP/bPHZ6Fb+/3Nv1NV+aAMB2vqOlrujcGkI49vFmH6qbNKgAAyuakGSIlBab4PBPti3B+tOoLeimqL4H8iAQAWZCjinG12oUTkl07ZpU1waFUTDaKv4QvwFU4bGgZYk7hysAjE7A8NxI7ApEenbxySnkjew4zQlmPmV21u16E3kGYx node-autoscaling"], ["ec2_reservation_id", "r-7c31b10a"], ["ec2_security_groups", "default"], ["facterversion", "1.5.9"], ["fqdn", "ip-10-234-151-254.eu-west-1.compute.internal"], ["hardwareisa", "unknown"], ["hardwaremodel", "x86_64"], ["hostname", "ip-10-234-151-254"], ["id", "root"], ["interfaces", "dummy0,eql,eth0,ifb0,ifb1,lo"], ["ipaddress", "10.234.151.254"], ["ipaddress_eth0", "10.234.151.254"], ["ipaddress_lo", "127.0.0.1"], ["is_virtual", "true"], ["kernel", "Linux"], ["kernelmajversion", "2.6"], ["kernelrelease", "2.6.32-314-ec2"], ["kernelversion", "2.6.32"], ["lib", "/var/lib/puppet/facts"], ["lsbdistcodename", "lucid"], ["lsbdistdescription", "Ubuntu 10.04.2 LTS"], ["lsbdistid", "Ubuntu"], ["lsbdistrelease", "10.04"], ["lsbmajdistrelease", "10"], ["macaddress", "26:73:1b:a3:48:2a"], ["macaddress_dummy0", "26:73:1b:a3:48:2a"], ["macaddress_eth0", "12:31:3b:05:94:10"], ["macaddress_ifb0", "5e:5b:e7:92:26:c2"], ["macaddress_ifb1", "72:50:ad:1d:a1:0f"], ["memoryfree", "430.29 MB"], ["memorysize", "635.17 MB"], ["netmask", "255.255.254.0"], ["netmask_eth0", "255.255.254.0"], ["netmask_lo", "255.0.0.0"], ["network_eth0", "10.234.150.0"], ["network_lo", "127.0.0.0"], ["operatingsystem", "Ubuntu"], ["operatingsystemrelease", "10.04"], ["path", "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/rvm/bin"], ["physicalprocessorcount", "1"], ["processor0", "Intel(R) Xeon(R) CPU E5430 @ 2.66GHz"], ["processorcount", "1"], ["ps", "ps -ef"], ["puppetversion", "2.6.7"], ["rubysitedir", "/usr/local/lib/ruby/site_ruby/1.8"], ["rubyversion", "1.8.7"], ["selinux", "false"], ["sshdsakey", "AAAAB3NzaC1kc3MAAACBAM2/DHTO3olTFG6lmWXNJcEYKZtFylFWCLJomNEaMMkf7qEtCLSPVWdhgYKHmk/UBPrpuzWrapVa1/eap77CNgQ6e8LmKdcgkCVcuKSLqtm+e989lb9RrcIUYYd4UXIZbLPKF3z3AOmESxikaiQs9M8x4Jn5kmpPb6fixSvOi577AAAAFQDAQMxsywSbD3W28MCI3kfrbKhEPwAAAIBm5HQwsY8VZnfLgWdkpZfcDv2V/9U+0+Atd6O37wpmF4HjIqbIbTJ1ABCXhLgo5oX2YVsRWfVLLxsmgxPoF5CLBNPQcFhNldto4H8sGkcbNFU8oBEiOgnZ6ZEax/Ooe/bO7wR+dz0F5u9IuMj4QK1GWuiAUr7U8E9Ithhe3DVq1QAAAIB3xFxOwbewB9YaeajoTfJDZzt/ovgSD3V4YYgX7mRG8Zv5UW2LduLgifwBJLWVt/Qp44STI1wON2OFRNDvhIH82+5iW3m5ifIy5c8ZviupZVpYy2adw/Ay3+bP/w0TtosmlzyWW7tj2jXVTc79ul3y9uXfZcQw8EB0ISbafy6+2Q=="], ["sshrsakey", "AAAAB3NzaC1yc2EAAAABIwAAAQEAtdvq2CjLz74rL1peJiZakeZtgeJ6lQ1vzCHseSkB3kjsPBMckz9RIec0PrLcY7BmEMfTIJJOq8OrrKdeCauRWQ47tuajVtXr+FXB0U+4FRLs2onBzUI8k2ToY8qNR7TfD5MmirBrYb26S/r0Lm8d86RkkMl4snbwEU0b42e6NbzcjVShAkbGGols7FpziqQWZY4Coo4Z2b2IBLqBZXg4N9laAsR3NlH8JclkUZ34gh5Bnzmr6b/IxTR06aIP0s0W9KEmzuHGv7S/loC1xAgxJMZf/ViLGAGf83jpnp7mMJ5Pbtbbys8tv+Jp4Jobmn/90FkMstkxpoPZX48ImwDfbQ=="], ["swapfree", "0.00 kB"], ["swapsize", "0.00 kB"], ["timezone", "CEST"], ["uniqueid", "ea0afe97"], ["uptime", "4:51 hours"], ["uptime_days", 0], ["uptime_hours", 4], ["uptime_seconds", 17517], ["virtual", "xenu"]]
15
-
16
- end
17
- end
18
- end