ucslib 0.0.3 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -10,10 +10,11 @@ gem install ucslib
10
10
  == Usage (example irb session)
11
11
 
12
12
 
13
- Just do "require ucslib" in your apps. Below is an introspection of some of the capabilities using IRB.
13
+ Just do "require ucslib" in your apps. Below is an IRB session to highlight some capabilities.
14
14
 
15
15
 
16
- ➜ ucslib git:(master) ✗ irb
16
+ ➜ ucslib git:(master) ✗ irb
17
+
17
18
  1.9.3p194 :001 > require 'ucslib'
18
19
  => true
19
20
  1.9.3p194 :002 > auth_json = { :username => 'admin', :password => 'admin', :ip => '172.16.75.137' }.to_json
data/html/created.rid CHANGED
@@ -1,7 +1,7 @@
1
- Sun, 13 May 2012 16:46:01 -0400
1
+ Sun, 13 May 2012 16:51:12 -0400
2
2
  README.rdoc Sun, 13 May 2012 16:43:42 -0400
3
3
  lib/ucslib/inventory.rb Sun, 13 May 2012 13:23:45 -0400
4
4
  lib/ucslib/provision.rb Sun, 13 May 2012 16:19:41 -0400
5
5
  lib/ucslib/session.rb Sun, 13 May 2012 16:19:37 -0400
6
- lib/ucslib/version.rb Sun, 13 May 2012 13:23:52 -0400
6
+ lib/ucslib/version.rb Sun, 13 May 2012 16:49:08 -0400
7
7
  lib/ucslib.rb Sat, 12 May 2012 15:18:22 -0400
@@ -24,7 +24,7 @@
24
24
  <div id="metadata">
25
25
  <dl>
26
26
  <dt class="modified-date">Last Modified</dt>
27
- <dd class="modified-date">2012-05-13 13:23:52 -0400</dd>
27
+ <dd class="modified-date">2012-05-13 16:49:08 -0400</dd>
28
28
 
29
29
 
30
30
  <dt class="requires">Requires</dt>
@@ -28,12 +28,44 @@ class UCSInventory
28
28
  xml_builder = Nokogiri::XML::Builder.new do |xml|
29
29
  xml.configResolveClasses('cookie' => cookie, 'inHierarchical' => 'false') {
30
30
  xml.inIds{
31
- xml.classId("value" => "lsServer")
31
+ xml.classId("value" => "topSystem")
32
+ xml.classId("value" => "equipmentChassis")
32
33
  xml.classId("value" => "computeBlade")
34
+ xml.classId("value" => "equipmentSwitchCard")
35
+ xml.classId("value" => "equipmentIOCard")
36
+ xml.classId("value" => "equipmentFanModule")
37
+ xml.classId("value" => "equipmentPsu")
38
+ xml.classId("value" => "processorUnit")
39
+ xml.classId("value" => "adaptorHostIf")
40
+ xml.classId("value" => "memoryArray")
41
+ xml.classId("value" => "memoryUnit")
42
+ xml.classId("value" => "storageLocalDisk")
43
+ xml.classId("value" => "equipmentFan")
33
44
  xml.classId("value" => "firmwareRunning")
34
- xml.classId("value" => "fabricVsan")
45
+ xml.classId("value" => "lsServer")
46
+ xml.classId("value" => "orgOrg")
35
47
  xml.classId("value" => "fabricVlan")
36
- xml.classId("value" => "processorUnit")
48
+ xml.classId("value" => "vnicEther")
49
+ xml.classId("value" => "fabricVsan")
50
+ xml.classId("value" => "vmAdaptor")
51
+ xml.classId("value" => "vmCont")
52
+ xml.classId("value" => "vmDC")
53
+ xml.classId("value" => "vmDCOrg")
54
+ xml.classId("value" => "vmDirCont")
55
+ xml.classId("value" => "vmEp")
56
+ xml.classId("value" => "vmHba")
57
+ xml.classId("value" => "vmHv")
58
+ xml.classId("value" => "vmInstance")
59
+ xml.classId("value" => "vmLifeCyclePolicy")
60
+ xml.classId("value" => "vmNic")
61
+ xml.classId("value" => "vmOrg")
62
+ xml.classId("value" => "vmSwitch")
63
+ xml.classId("value" => "vmVif")
64
+ xml.classId("value" => "vmVirtual")
65
+ xml.classId("value" => "vmVlan")
66
+ xml.classId("value" => "vmVnicProfCl")
67
+ xml.classId("value" => "vmVnicProfInst")
68
+ xml.classId("value" => "vmVsan")
37
69
  }
38
70
  }
39
71
  end
@@ -54,7 +86,7 @@ class UCSInventory
54
86
 
55
87
 
56
88
  def list_blades(ucs_multi_class_xml)
57
-
89
+
58
90
  ucs_multi_class_xml.xpath("configResolveClasses/outConfigs/computeBlade").each do |blade|
59
91
 
60
92
  puts "Blade : #{blade.attributes["serverId"]} model: #{blade.attributes["model"]}" \
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module Ucslib
19
- VERSION = "0.0.3"
19
+ VERSION = "0.0.7"
20
20
  end
data/ucslib.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.email = ["murali.raju@appliv.com"]
27
27
  s.homepage = ""
28
28
  s.summary = %q{Ruby UCS Manager Client Library}
29
- s.description = %q{RUby UCS Manager API abstraction to build automation tools}
29
+ s.description = %q{Ruby Client Library for Cisco UCS Manager that can be used by DevOps toolchains (Chef/Puppet or others) to provide hardware deployment automation}
30
30
 
31
31
  s.rubyforge_project = "ucslib"
32
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucslib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.7
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: 2012-05-13 00:00:00.000000000 Z
12
+ date: 2012-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &70163768824620 !ruby/object:Gem::Requirement
16
+ requirement: &70303451979280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70163768824620
24
+ version_requirements: *70303451979280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rest-client
27
- requirement: &70163768824020 !ruby/object:Gem::Requirement
27
+ requirement: &70303451978700 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70163768824020
35
+ version_requirements: *70303451978700
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: json
38
- requirement: &70163768823600 !ruby/object:Gem::Requirement
38
+ requirement: &70303451978000 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,8 +43,9 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70163768823600
47
- description: RUby UCS Manager API abstraction to build automation tools
46
+ version_requirements: *70303451978000
47
+ description: Ruby Client Library for Cisco UCS Manager that can be used by DevOps
48
+ toolchains (Chef/Puppet or others) to provide hardware deployment automation
48
49
  email:
49
50
  - murali.raju@appliv.com
50
51
  executables: []