Class: Capistrano::Blaze::Configuration
- Inherits:
-
Object
- Object
- Capistrano::Blaze::Configuration
- Defined in:
- lib/capistrano/blaze/configuration.rb
Defined Under Namespace
Classes: MissingOption
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#room_id ⇒ Object
Returns the value of attribute room_id.
-
#ssl ⇒ Object
Returns the value of attribute ssl.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
6 7 8 |
# File 'lib/capistrano/blaze/configuration.rb', line 6 def account @account end |
#room_id ⇒ Object
Returns the value of attribute room_id.
6 7 8 |
# File 'lib/capistrano/blaze/configuration.rb', line 6 def room_id @room_id end |
#ssl ⇒ Object
Returns the value of attribute ssl.
6 7 8 |
# File 'lib/capistrano/blaze/configuration.rb', line 6 def ssl @ssl end |
#token ⇒ Object
Returns the value of attribute token.
6 7 8 |
# File 'lib/capistrano/blaze/configuration.rb', line 6 def token @token end |
Instance Method Details
#[](option) ⇒ Object
12 13 14 |
# File 'lib/capistrano/blaze/configuration.rb', line 12 def [](option) send option end |
#[]=(option, value) ⇒ Object
8 9 10 |
# File 'lib/capistrano/blaze/configuration.rb', line 8 def []=(option, value) send "#{option}=", value end |
#validate! ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/capistrano/blaze/configuration.rb', line 16 def validate! %w(account room_id token).each do |option| if send(option).nil? fail MissingOption.new(option) end end end |