Class: Bosh::Cli::Client::ExportReleaseClient
- Defined in:
- lib/cli/client/export_release_client.rb
Instance Method Summary collapse
- #export(deployment_name, release_name, release_version, stemcell_os, stemcell_version) ⇒ Object
-
#initialize(director) ⇒ ExportReleaseClient
constructor
A new instance of ExportReleaseClient.
Constructor Details
#initialize(director) ⇒ ExportReleaseClient
Returns a new instance of ExportReleaseClient.
3 4 5 |
# File 'lib/cli/client/export_release_client.rb', line 3 def initialize(director) @director = director end |
Instance Method Details
#export(deployment_name, release_name, release_version, stemcell_os, stemcell_version) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/cli/client/export_release_client.rb', line 7 def export(deployment_name, release_name, release_version, stemcell_os, stemcell_version) path = "/releases/export" content_type = 'application/json' body = JSON.dump( deployment_name: deployment_name, release_name: release_name, release_version: release_version, stemcell_os: stemcell_os, stemcell_version: stemcell_version, ) @director.request_and_track(:post, path, {content_type: content_type, payload: body }) end |