Class: Capistrano::Blaze::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/blaze/configuration.rb

Defined Under Namespace

Classes: MissingOption

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accountObject

Returns the value of attribute account


6
7
8
# File 'lib/capistrano/blaze/configuration.rb', line 6

def 
  @account
end

#room_idObject

Returns the value of attribute room_id


6
7
8
# File 'lib/capistrano/blaze/configuration.rb', line 6

def room_id
  @room_id
end

#sslObject

Returns the value of attribute ssl


6
7
8
# File 'lib/capistrano/blaze/configuration.rb', line 6

def ssl
  @ssl
end

#tokenObject

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