class Quandl::Sandbox::Configuration
Public Class Methods
new()
click to toggle source
# 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
Public Instance Methods
key_data()
click to toggle source
# File lib/quandl/sandbox/configuration.rb, line 34 def key_data File.read(key_file) end
to_h()
click to toggle source
# File lib/quandl/sandbox/configuration.rb, line 38 def to_h self.attributes end