bosh_cli 1.5.0.pre.1284 → 1.5.0.pre.1302
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.
@@ -9,14 +9,21 @@ module Bosh::Cli::Client
|
|
9
9
|
content_type = 'application/json'
|
10
10
|
|
11
11
|
body = JSON.dump(
|
12
|
-
stemcell_name:
|
12
|
+
stemcell_name: stemcell_name,
|
13
13
|
stemcell_version: stemcell_version,
|
14
|
-
release_name:
|
15
|
-
release_version:
|
14
|
+
release_name: release_name,
|
15
|
+
release_version: release_version,
|
16
16
|
)
|
17
17
|
|
18
18
|
_, file_path, _ = @director.post(path, content_type, body, {}, file: true)
|
19
19
|
file_path
|
20
20
|
end
|
21
|
+
|
22
|
+
def import(exported_tar_path)
|
23
|
+
path = '/compiled_package_groups/import'
|
24
|
+
|
25
|
+
@director.upload_and_track(:post, path, exported_tar_path, {content_type: 'application/x-compressed'})
|
26
|
+
end
|
27
|
+
|
21
28
|
end
|
22
29
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'cli/client/compiled_packages_client'
|
2
|
+
|
3
|
+
module Bosh::Cli::Command
|
4
|
+
class ImportCompiledPackages < Base
|
5
|
+
usage 'import compiled_packages'
|
6
|
+
desc 'Import compiled packages for a specific release and stemcell combination'
|
7
|
+
|
8
|
+
def perform(exported_tar_path)
|
9
|
+
auth_required
|
10
|
+
|
11
|
+
unless File.exist?(exported_tar_path)
|
12
|
+
raise Bosh::Cli::CliError, 'Archive does not exist'
|
13
|
+
end
|
14
|
+
client = Bosh::Cli::Client::CompiledPackagesClient.new(director)
|
15
|
+
client.import(exported_tar_path)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.0.pre.
|
4
|
+
version: 1.5.0.pre.1302
|
5
5
|
prerelease: 6
|
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: 2013-11-
|
12
|
+
date: 2013-11-11 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.5.0.pre.
|
21
|
+
version: 1.5.0.pre.1302
|
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.5.0.pre.
|
29
|
+
version: 1.5.0.pre.1302
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: json_pure
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,7 +114,7 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.5.0.pre.
|
117
|
+
version: 1.5.0.pre.1302
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
requirements:
|
123
123
|
- - ~>
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: 1.5.0.pre.
|
125
|
+
version: 1.5.0.pre.1302
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: net-ssh
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -221,7 +221,7 @@ dependencies:
|
|
221
221
|
version: '0'
|
222
222
|
description: ! 'BOSH CLI
|
223
223
|
|
224
|
-
|
224
|
+
64af4e'
|
225
225
|
email: support@cloudfoundry.com
|
226
226
|
executables:
|
227
227
|
- bosh
|
@@ -247,6 +247,7 @@ files:
|
|
247
247
|
- lib/cli/commands/deployment.rb
|
248
248
|
- lib/cli/commands/export_compiled_packages.rb
|
249
249
|
- lib/cli/commands/help.rb
|
250
|
+
- lib/cli/commands/import_compiled_packages.rb
|
250
251
|
- lib/cli/commands/job.rb
|
251
252
|
- lib/cli/commands/job_management.rb
|
252
253
|
- lib/cli/commands/job_rename.rb
|