Module: Jabot::DSL
- Included in:
- Base
- Defined in:
- lib/jabot/dsl.rb
Instance Method Summary collapse
- #clients(list) ⇒ Object
- #command(name, &block) ⇒ Object
- #password(value) ⇒ Object
- #standalone_mode ⇒ Object
- #username(value) ⇒ Object
Instance Method Details
#clients(list) ⇒ Object
15 16 17 18 |
# File 'lib/jabot/dsl.rb', line 15 def clients(list) raise StandardError, 'Clients list must be an array' unless list.is_a?(Array) @config[:clients] = list end |
#command(name, &block) ⇒ Object
3 4 5 |
# File 'lib/jabot/dsl.rb', line 3 def command(name, &block) @commands.add_command(name, &block) end |
#password(value) ⇒ Object
11 12 13 |
# File 'lib/jabot/dsl.rb', line 11 def password(value) @config[:password] = value end |
#standalone_mode ⇒ Object
20 21 22 |
# File 'lib/jabot/dsl.rb', line 20 def standalone_mode @standalone_mode = true end |
#username(value) ⇒ Object
7 8 9 |
# File 'lib/jabot/dsl.rb', line 7 def username(value) @config[:username] = value end |