Class: Bump::CLI::Commands::Deploy
- Defined in:
- lib/bump/cli/commands/deploy.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Instance Method Details
#call(file:, **options) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/bump/cli/commands/deploy.rb', line 19 def call(file:, **) with_errors_rescued do response = post( url: API_URL + "/versions", body: body(file, **).to_json, token: [:token] ) if response.code == 201 puts "The new version is currently being processed." elsif response.code == 204 puts "This version has already been deployed." else display_error(response) end end end |