seiso-import_chef 0.0.3 → 0.0.4

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmU2Yzk3YmYyZDA2NmIxZjA5ZDBjYjE1NmU0ODczZGVlOTFkODY5MA==
4
+ NThkZDU2ZjhkYjNlM2Y5MDVkMzcyMTc2MDEyMDg5YTI1NGE0NzY3MQ==
5
5
  data.tar.gz: !binary |-
6
- ODY2ZjVjOTRiNmY0MTAxNDhjMDM3M2ZlOWNiYzc3NDcxNTkxN2U1MQ==
6
+ NDBjMjA2ODYwNGNjOGM1YjA5NzA1MGFlNmI2NzQxYzcyNTViYzE1YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWFmNTA4ODgzMGJlZmQwZjg5NWNlZmRlNmM3YWE4YzVjNDljZjIyNzFjNjcw
10
- N2IwM2UwOWJmMTA4OWY5M2ViMzI4ZTM4NTNhMmYxYTdlMjhjNWFjNDRiNzlk
11
- ZmZjMjM4NjgyMDQ4MmFjZGEyYzU0Y2Q4OTBlM2ZkZjkxMmY4Nzc=
9
+ MGZlY2FkZTAxYTU0NjMyMWY5ODZmMTBkMjZlMjUzZjNmMDM4NDJkYTkxM2Fh
10
+ YTk2Mjg3OGYwNmNiMWYwNGFiYjM4Njg1ZWMzOTE4NzhmNGVlMzM1M2FkNzkw
11
+ YTkxMDY3NGQ2YzJjYzc1MDk3MDRmYWNlNDc5MWM4ZjExNTA3OWI=
12
12
  data.tar.gz: !binary |-
13
- ZTM3NDVkZTg0NzcwMGZmN2U1NGYyNWJiNDRlOGM0MGMyN2MwNDQ0ODI4MTE5
14
- N2JkOTBjZjBhNWI1OGM0NjNkZWJmYTlkNjgxMzdlOTU0ZDYwYWE0YjA3NDI0
15
- ZDBhNTE2NzRmYzMyZTIzOTRjZDEwYjBiOTZiMDI4N2MyZDdmYTI=
13
+ MzRmNzhhZWU3ZTJhYTQ4YTNiN2NlMGMwMmQ1ZWFiOTgwNjM5NjFlN2UxNzMz
14
+ NDA2NmMwYTI4YjAxYTg4YTZmZGVlMDNjMmVhMTQ3ZWYxZmE4MDJkNzYxNzYx
15
+ MWEzODY2N2RhN2Q3NTc2NzhjYzU2ZDNiYzdlN2MwMGNiYzI0MDU=
@@ -25,6 +25,10 @@ module Seiso
25
25
  @mapper = Seiso::ImportChef::ChefMachineMapper.new
26
26
  end
27
27
 
28
+ def seiso
29
+ @seiso
30
+ end
31
+
28
32
  # Imports all nodes from the Chef server into Seiso.
29
33
  def import_all
30
34
  nodes = @chef.get_rest "/nodes"
@@ -74,7 +78,7 @@ module Seiso
74
78
  # surface these as problem nodes too, maybe indicating that the server didn't like them, as opposed to not being able to
75
79
  # read them from Chef server.
76
80
  puts "Flushing nodes to Seiso"
77
- @seiso.put_items('machines', page)
81
+ seiso.post_items('machines', page)
78
82
  end
79
83
 
80
84
  if problem_nodes.empty?
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "seiso-import_chef"
7
- spec.version = "0.0.3"
7
+ spec.version = "0.0.4"
8
8
  spec.authors = ["Willie Wheeler"]
9
9
  spec.email = ["wwheeler@expedia.com"]
10
10
  spec.summary = "Imports Chef data into Seiso."
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "rake", "~> 10.0"
22
22
 
23
23
  spec.add_runtime_dependency "chef", "~> 11.8"
24
- spec.add_runtime_dependency "seiso-connector", "~> 0.0"
24
+ spec.add_runtime_dependency "seiso-connector", "~> 0.1"
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seiso-import_chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willie Wheeler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-23 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0.0'
61
+ version: '0.1'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '0.0'
68
+ version: '0.1'
69
69
  description: Currently supports importing Chef nodes as Seiso machines.
70
70
  email:
71
71
  - wwheeler@expedia.com