Class: Travis::CLI::Setup::CloudFoundry
- Defined in:
- lib/travis/cli/setup/cloud_foundry.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
Methods inherited from Service
description, #initialize, known_as?, #method_missing, normalized_name, service_name
Constructor Details
This class inherits a constructor from Travis::CLI::Setup::Service
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Travis::CLI::Setup::Service
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/travis/cli/setup/cloud_foundry.rb', line 9 def run deploy 'provider' => 'cloudfoundry' do |config| target_file = File.('.cf/target', Dir.home) config['target'] ||= File.read(target_file).chomp if File.exist? target_file config['target'] ||= ask("Cloud Foundry target: ").to_s config['username'] ||= ask("Cloud Foundry user name: ").to_s config['password'] ||= ask("Cloud Foundry password: ") { |q| q.echo = "*" }.to_s config['organization'] ||= ask("Cloud Foundry organization: ").to_s config['space'] ||= ask("Cloud Foundry space: ").to_s end end |