capistrano-puppet 0.0.1 → 0.0.2

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.
data/README CHANGED
@@ -7,7 +7,7 @@ A sample capistrano configuration might look like the following. The only import
7
7
 
8
8
  require 'capistrano-puppet'
9
9
 
10
- web_puppet = CapistranoPuppet::Server.new('http://localhost:9295')
10
+ web_puppet = CapistranoPuppet::Server.new('http://username:password@localhost:9295')
11
11
 
12
12
  set :application, "test"
13
13
  set :repository, "."
@@ -23,11 +23,11 @@ A sample capistrano configuration might look like the following. The only import
23
23
  web_puppet.get_servers('webserver')
24
24
  end
25
25
 
26
- role :web do
26
+ role :app do
27
27
  web_puppet.get_servers('appserver')
28
28
  end
29
29
 
30
30
 
31
- Note that this is the first release as is really just a proof of concept. Running web-puppet in environments with lots of hosts will likely be very slow. And currently if you're using the HTTP auth built into web-puppet this client can't yet authenticate.
31
+ Note that this is the first release as is really just a proof of concept. Running web-puppet in environments with lots of hosts will likely be very slow.
32
32
 
33
33
  The code was inspired by Capistrano-cobbler, which uses Cobbler rather than web-puppet to get the host information. https://github.com/proffalken/capistrano-cobbler
@@ -19,4 +19,5 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  s.add_runtime_dependency "capistrano"
22
+ s.add_runtime_dependency "rest-client"
22
23
  end
@@ -1,5 +1,5 @@
1
1
  require "capistrano-puppet/version"
2
- require 'open-uri'
2
+ require 'rest_client'
3
3
  require 'json'
4
4
 
5
5
  module CapistranoPuppet
@@ -10,7 +10,7 @@ module CapistranoPuppet
10
10
 
11
11
  def initialize(puppet_web)
12
12
  @puppet_web = puppet_web
13
- contents = URI.parse(@puppet_web).read
13
+ contents = RestClient.get(@puppet_web).to_s
14
14
  @json = JSON.parse(contents)
15
15
  end
16
16
 
@@ -1,3 +1,3 @@
1
1
  module CapistranoPuppet
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-05 00:00:00.000000000Z
12
+ date: 2011-11-06 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &70313740345240 !ruby/object:Gem::Requirement
16
+ requirement: &70182468723940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,18 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70313740345240
24
+ version_requirements: *70182468723940
25
+ - !ruby/object:Gem::Dependency
26
+ name: rest-client
27
+ requirement: &70182468723520 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70182468723520
25
36
  description: ! '"Connects to the web-puppet webservice and allows puppet hosts and
26
37
  classes to be used to determine hosts for capistrano"'
27
38
  email: