puppetsdb 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/puppetsdb.rb CHANGED
@@ -1,5 +1,3 @@
1
- #!/usr/bin/env ruby
2
-
3
1
  require 'base64'
4
2
  require 'rubygems'
5
3
  require 'aws'
@@ -9,7 +7,7 @@ module PuppetSDB
9
7
  class PuppetSDB
10
8
  attr_accessor :simpledb, :domain
11
9
 
12
- def initialize(domain=nil)
10
+ def initialize(options={})
13
11
  cfg_file_paths = ['/etc/puppetsdb/config.yml']
14
12
  if ENV['HOME']
15
13
  cfg_file_paths << '~/.puppetsdb/config.yml'
@@ -24,7 +22,7 @@ module PuppetSDB
24
22
  end
25
23
 
26
24
  AWS.config(conf['aws'])
27
- domain ||= conf['puppetsdb']['domain']
25
+ domain = options[:domain] || conf['puppetsdb']['domain']
28
26
  @simpledb = AWS::SimpleDB.new
29
27
  @domain = domain
30
28
  end
@@ -1,3 +1,3 @@
1
1
  module PuppetSDB
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brian Wong
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-11-14 00:00:00 -05:00
17
+ date: 2012-11-23 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency