Class: AppOpsClient::CLI::Deployment
- Inherits:
-
Thor
- Object
- Thor
- AppOpsClient::CLI::Deployment
- Defined in:
- lib/appops-client/cli/deployment.rb
Instance Method Summary collapse
- #launch(application_id, account_name, region_name, inf_version, git_checksum) ⇒ Object
- #list ⇒ Object
- #show(deployment_id) ⇒ Object
Instance Method Details
#launch(application_id, account_name, region_name, inf_version, git_checksum) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/appops-client/cli/deployment.rb', line 30 def launch( application_id, account_name, region_name, inf_version, git_checksum ) AppOpsService['api/1.0/applications/%s/launch' % deployment_id].get({ :content_type => 'application/json' }) do |response, request, result, &block| json = JSON::parse( response ) pp json end end |
#list ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/appops-client/cli/deployment.rb', line 12 def list() AppOpsService['api/1.0/deployments/'].get({ :content_type => 'application/json' }) do |response, request, result, &block| json = JSON::parse( response ) json["data"].each do |row| AppOpsClientLogger.debug( "Row" ){ "%s-%s ( %s )" % [row["name"], row["version_name"], row["id"]] } end end end |
#show(deployment_id) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/appops-client/cli/deployment.rb', line 22 def show( deployment_id ) AppOpsService['api/1.0/deployments/%s' % deployment_id].get({ :content_type => 'application/json' }) do |response, request, result, &block| json = JSON::parse( response ) pp json end end |