Class: Quandl::Sandbox::Configuration
- Inherits:
-
Object
- Object
- Quandl::Sandbox::Configuration
show all
- Includes:
- Attributes
- Defined in:
- lib/quandl/sandbox/configuration.rb
Instance Method Summary
collapse
Methods included from Attributes
#attributes, #attributes=
Constructor Details
Returns a new instance of Configuration.
24
25
26
27
28
29
30
31
32
|
# File 'lib/quandl/sandbox/configuration.rb', line 24
def initialize
@instance_type = 'm1.small'
@availability_zone = 'us-east-1c'
@ssh_user = 'ubuntu'
@environment ||= ( ENV['APP_ENV'] || ENV['RAILS_ENV'] || 'development' )
@verbose = ( @environment == 'production' ) ? false : true
@key_name = 'quandl_3'
@tmp_dir = File.join( Quandl::Sandbox.root, 'tmp/' )
end
|
Instance Method Details
#key_data ⇒ Object
34
35
36
|
# File 'lib/quandl/sandbox/configuration.rb', line 34
def key_data
File.read(key_file)
end
|
#to_h ⇒ Object
38
39
40
|
# File 'lib/quandl/sandbox/configuration.rb', line 38
def to_h
self.attributes
end
|