bosh_vsphere_cpi 1.2539.0 → 1.2546.0

Sign up to get free protection for your applications and to get access to all the features.
data/bin/vsphere_cpi ADDED
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'yaml'
5
+ require 'sequel'
6
+ require 'logger'
7
+ require 'cloud'
8
+ require 'cloud/vsphere'
9
+ require 'ostruct'
10
+ require 'tmpdir'
11
+ require 'bosh/cpi'
12
+ require 'bosh/cpi/cli'
13
+
14
+ Sequel.extension(:migration)
15
+
16
+ cpi_config = YAML.load_file(ARGV.shift)
17
+ db_config = cpi_config.fetch('db')
18
+
19
+ require 'sequel/adapters/sqlite' if db_config['adapter'] == 'sqlite'
20
+
21
+ connection_options = db_config.delete('connection_options') { {} }
22
+ db_config.delete_if { |_, v| v.to_s.empty? }
23
+ db_config = db_config.merge(connection_options)
24
+
25
+ db = Sequel.connect(db_config)
26
+
27
+ db_migrations_path = File.expand_path('../../db/migrations', __FILE__)
28
+ Sequel::TimestampMigrator.new(db, db_migrations_path, {table: 'vsphere_cpi_schema'}).run
29
+
30
+ Bosh::Clouds::Config.configure(OpenStruct.new(
31
+ logger: Logger.new(STDERR),
32
+ task_checkpoint: nil,
33
+ db: db,
34
+ ))
35
+
36
+ cpi = Bosh::Clouds::VSphere.new(cpi_config['cloud']['properties'])
37
+
38
+ cli = Bosh::Cpi::Cli.new(cpi, STDOUT)
39
+
40
+ cli.run(ARGF.read)
@@ -1,7 +1,7 @@
1
1
  module Bosh
2
2
  module Clouds
3
3
  class VSphere
4
- VERSION = '1.2539.0'
4
+ VERSION = '1.2546.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh_vsphere_cpi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2539.0
4
+ version: 1.2546.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-10 00:00:00.000000000 Z
12
+ date: 2014-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bosh_common
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.2539.0
21
+ version: 1.2546.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 1.2539.0
29
+ version: 1.2546.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: bosh_cpi
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 1.2539.0
37
+ version: 1.2546.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 1.2539.0
45
+ version: 1.2546.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: membrane
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -75,6 +75,86 @@ dependencies:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
77
  version: 3.43.0
78
+ - !ruby/object:Gem::Dependency
79
+ name: pg
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 0.15.1
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 0.15.1
94
+ - !ruby/object:Gem::Dependency
95
+ name: mysql2
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 0.3.11
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 0.3.11
110
+ - !ruby/object:Gem::Dependency
111
+ name: builder
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 3.1.4
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 3.1.4
126
+ - !ruby/object:Gem::Dependency
127
+ name: nokogiri
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: 1.5.10
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 1.5.10
142
+ - !ruby/object:Gem::Dependency
143
+ name: httpclient
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 2.2.4
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 2.2.4
78
158
  - !ruby/object:Gem::Dependency
79
159
  name: rspec
80
160
  requirement: !ruby/object:Gem::Requirement
@@ -93,9 +173,10 @@ dependencies:
93
173
  version: '0'
94
174
  description: ! 'BOSH VSphere CPI
95
175
 
96
- 69090d'
176
+ e8aedb'
97
177
  email: support@cloudfoundry.com
98
178
  executables:
179
+ - vsphere_cpi
99
180
  - vsphere_cpi_console
100
181
  extensions: []
101
182
  extra_rdoc_files: []
@@ -153,6 +234,7 @@ files:
153
234
  - lib/ruby_vim_sdk/vmodl_helper.rb
154
235
  - lib/ruby_vim_sdk/vmomi_support.rb
155
236
  - README
237
+ - bin/vsphere_cpi
156
238
  - bin/vsphere_cpi_console
157
239
  homepage: https://github.com/cloudfoundry/bosh
158
240
  licenses:
@@ -175,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
257
  version: '0'
176
258
  segments:
177
259
  - 0
178
- hash: -3341560353770893796
260
+ hash: -519833725628457817
179
261
  requirements: []
180
262
  rubyforge_project:
181
263
  rubygems_version: 1.8.23