Class: Awsome::Config
- Inherits:
-
Object
- Object
- Awsome::Config
- Defined in:
- lib/awsome.rb
Instance Attribute Summary collapse
-
#aws_access_key ⇒ Object
Returns the value of attribute aws_access_key.
-
#aws_secret_key ⇒ Object
Returns the value of attribute aws_secret_key.
-
#connection_timeout ⇒ Object
Returns the value of attribute connection_timeout.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#region ⇒ Object
Returns the value of attribute region.
-
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
-
#show_empty_fields ⇒ Object
Returns the value of attribute show_empty_fields.
-
#show_request ⇒ Object
Returns the value of attribute show_request.
-
#stacks ⇒ Object
Returns the value of attribute stacks.
-
#url ⇒ Object
Returns the value of attribute url.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
78 79 80 81 82 83 84 |
# File 'lib/awsome.rb', line 78 def initialize @region = ENV['REGION'] @url = ENV['EC2_URL'] @aws_access_key = ENV['AWS_ACCESS_KEY'] @aws_secret_key = ENV['AWS_SECRET_KEY'] @show_empty_fields = true end |
Instance Attribute Details
#aws_access_key ⇒ Object
Returns the value of attribute aws_access_key.
75 76 77 |
# File 'lib/awsome.rb', line 75 def aws_access_key @aws_access_key end |
#aws_secret_key ⇒ Object
Returns the value of attribute aws_secret_key.
75 76 77 |
# File 'lib/awsome.rb', line 75 def aws_secret_key @aws_secret_key end |
#connection_timeout ⇒ Object
Returns the value of attribute connection_timeout.
75 76 77 |
# File 'lib/awsome.rb', line 75 def connection_timeout @connection_timeout end |
#debug ⇒ Object
Returns the value of attribute debug.
75 76 77 |
# File 'lib/awsome.rb', line 75 def debug @debug end |
#region ⇒ Object
Returns the value of attribute region.
75 76 77 |
# File 'lib/awsome.rb', line 75 def region @region end |
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
75 76 77 |
# File 'lib/awsome.rb', line 75 def request_timeout @request_timeout end |
#show_empty_fields ⇒ Object
Returns the value of attribute show_empty_fields.
75 76 77 |
# File 'lib/awsome.rb', line 75 def show_empty_fields @show_empty_fields end |
#show_request ⇒ Object
Returns the value of attribute show_request.
75 76 77 |
# File 'lib/awsome.rb', line 75 def show_request @show_request end |
#stacks ⇒ Object
Returns the value of attribute stacks.
75 76 77 |
# File 'lib/awsome.rb', line 75 def stacks @stacks end |
#url ⇒ Object
Returns the value of attribute url.
75 76 77 |
# File 'lib/awsome.rb', line 75 def url @url end |
#verbose ⇒ Object
Returns the value of attribute verbose.
75 76 77 |
# File 'lib/awsome.rb', line 75 def verbose @verbose end |