lib/travis/cli/setup/cloud_control.rb in travis-1.11.1 vs lib/travis/cli/setup/cloud_control.rb in travis-1.12.0
- old
+ new
@@ -1,21 +1,23 @@
+# frozen_string_literal: true
+
require 'travis/cli/setup'
module Travis
module CLI
class Setup
class CloudControl < Service
- description "automatic deployment to cloudControl"
+ description 'automatic deployment to cloudControl'
def run
deploy 'cloudcontrol' do |config|
- config['email'] = ask("cloudControl email: ").to_s
- config['password'] = ask("cloudControl password: ") { |q| q.echo = "*" }.to_s
- app = ask("cloudControl application: ") { |q| q.default = repository.name }.to_s
- dep = ask("cloudControl deployment: ") { |q| q.default = "default" }.to_s
+ config['email'] = ask('cloudControl email: ').to_s
+ config['password'] = ask('cloudControl password: ') { |q| q.echo = '*' }.to_s
+ app = ask('cloudControl application: ') { |q| q.default = repository.name }.to_s
+ dep = ask('cloudControl deployment: ') { |q| q.default = 'default' }.to_s
config['deployment'] = "#{app}/#{dep}"
end
end
end
end
end
-end
\ No newline at end of file
+end