Class: Travis::CLI::Setup::CloudFiles

Inherits:
Service
  • Object
show all
Defined in:
lib/travis/cli/setup/cloud_files.rb

Instance Attribute Summary

Attributes inherited from Service

#command

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

#runObject



9
10
11
12
13
14
15
16
# File 'lib/travis/cli/setup/cloud_files.rb', line 9

def run
  deploy 'cloudfiles' do |config|
    config['username'] = ask("Rackspace Username: ").to_s
    config['api_key'] = ask("Rackspace Api Key: ") { |q| q.echo = "*" }.to_s
    config['region'] = ask("Cloud Files Region: ").to_s
    config['container'] = ask("Container: ").to_s
  end
end