class Travis::CLI::Setup::Service

def deploy(provider, verb = "deploy")

def deploy(provider, verb = "deploy")
  configure('deploy', 'provider' => provider) do |config|
    yield config
    on("#{verb.capitalize} only from #{repository.slug}? ", config, 'repo' => repository.slug)
    on("#{verb.capitalize} from #{branch} branch? ", config, 'branch' => branch) if branch != 'master' and branch != 'HEAD'
    encrypt(config, 'password') if config['password'] and agree("Encrypt Password? ") { |q| q.default = 'yes' }
    encrypt(config, 'api_key')  if config['api_key']  and agree("Encrypt API key? ") { |q| q.default = 'yes' }
  end
end