bosh_aws_cpi 1.3069.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a0a462c224cf436cf5fdb2df4ce3b1f9d2f5113
4
- data.tar.gz: 24574447fc0a4178850435380939f308a3620026
3
+ metadata.gz: 4715d56bc4b85eac9fd0189d39b4ded22f321a93
4
+ data.tar.gz: b398c1ed46eaf078f592326429962273b4134b7d
5
5
  SHA512:
6
- metadata.gz: 541e83ed525883434cd25b3588a02588084763ac70c31e3aff1b2368caedbd7139913e67d3d9815eb9c76ea5d63a9eda3b7793cd4a296292045f4fd4fa9282e5
7
- data.tar.gz: faede81fc31ccc0a9f0d2dff5811ef9f68d18d7699e8669663a74a22337e9ac4932bc1407b68b5b23f65426d7b29d59ce934c453ea4c975631df00f264556b47
6
+ metadata.gz: 7b5bea5f2a608cbcf193be6dfd842de0533d7484c932065d3af3b9b58baaa2a0fedee2a0a35ae0f09c926369fceac7e65226c5286534f62038a26933e25c4548
7
+ data.tar.gz: 9a063456dc99cf0170ebde8f2e7b4ffdc7064df20588f54adbf9a78132b05213a365140a241ac21447f1864627a6f529020bce3b081ec6d81ee3b63d27479415
data/bin/aws_cpi CHANGED
@@ -1,9 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require 'yaml'
3
4
  require 'ostruct'
4
- require 'bosh_aws_cpi'
5
5
  require 'bosh/cpi'
6
- require 'bosh/cpi/cli'
6
+ require 'bundler'
7
+
8
+ Bundler.setup(:default)
9
+ require 'cloud/aws'
7
10
 
8
11
  cpi_config = YAML.load_file(ARGV.shift)
9
12
  cloud_config = OpenStruct.new(:logger => Logger.new(STDERR))
data/lib/cloud/aws.rb CHANGED
@@ -21,7 +21,6 @@ require "bosh/registry/client"
21
21
  require "cloud"
22
22
  require "cloud/aws/helpers"
23
23
  require "cloud/aws/cloud"
24
- require "cloud/aws/version"
25
24
 
26
25
  require "cloud/aws/aki_picker"
27
26
  require "cloud/aws/network_configurator"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh_aws_cpi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3069.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - VMware
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-09 00:00:00.000000000 Z
11
+ date: 2015-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -28,44 +28,44 @@ dependencies:
28
28
  name: bosh_common
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3069.0
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.3069.0
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bosh_cpi
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.3069.0
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.3069.0
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bosh-registry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 1.3069.0
61
+ version: '0'
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: 1.3069.0
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: httpclient
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -94,48 +94,6 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.8.2
97
- - !ruby/object:Gem::Dependency
98
- name: rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: rspec-its
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
97
  description: BOSH AWS CPI
140
98
  email: support@cloudfoundry.com
141
99
  executables:
@@ -166,9 +124,7 @@ files:
166
124
  - lib/cloud/aws/stemcell_creator.rb
167
125
  - lib/cloud/aws/stemcell_finder.rb
168
126
  - lib/cloud/aws/tag_manager.rb
169
- - lib/cloud/aws/version.rb
170
127
  - lib/cloud/aws/vip_network.rb
171
- - scripts/stemcell-copy.sh
172
128
  homepage: https://github.com/cloudfoundry/bosh
173
129
  licenses:
174
130
  - Apache 2.0
@@ -1,5 +0,0 @@
1
- module Bosh
2
- module AwsCloud
3
- VERSION = '1.3069.0'
4
- end
5
- end
@@ -1,37 +0,0 @@
1
- #!/bin/sh
2
- #
3
- # This script runs as root through sudo without the need for a password,
4
- # so it needs to make sure it can't be abused.
5
- #
6
-
7
- # make sure we have a secure PATH
8
- PATH=/bin:/usr/bin
9
- export PATH
10
- if [ $# -ne 2 ]; then
11
- echo "usage: $0 <image-file> <block device>"
12
- exit 1
13
- fi
14
-
15
- IMAGE="$1"
16
- OUTPUT="$2"
17
-
18
- # workaround for issue on 12.04 LTS, use LANG=C
19
- echo ${IMAGE} | LANG=C egrep '^/[A-za-z0-9_/-]+/image$' > /dev/null 2>&1
20
- if [ $? -ne 0 ]; then
21
- echo "ERROR: illegal image file: ${IMAGE}"
22
- exit 1
23
- fi
24
-
25
- echo ${OUTPUT} | egrep '^/dev/[svx]+d[a-z0-9]+$' > /dev/null 2>&1
26
- if [ $? -ne 0 ]; then
27
- echo "ERROR: illegal device: ${OUTPUT}"
28
- exit 1
29
- fi
30
-
31
- if [ ! -b ${OUTPUT} ]; then
32
- echo "ERROR: not a device: ${OUTPUT}"
33
- exit 1
34
- fi
35
-
36
- # copy image to block device with 1 MB block size
37
- tar -xzf ${IMAGE} -O root.img | dd bs=1M of=${OUTPUT}