Module: TalkingCapistrano::SkypeNotification
- Defined in:
- lib/talking-capistrano.rb
Class Attribute Summary collapse
-
.skyper ⇒ Object
Returns the value of attribute skyper.
-
.topic ⇒ Object
Returns the value of attribute topic.
Class Method Summary collapse
- .notify(text) ⇒ Object
- .notify? ⇒ Boolean
- .pad_text(text) ⇒ Object
- .set_notify(topic_exist) ⇒ Object
Class Attribute Details
.skyper ⇒ Object
Returns the value of attribute skyper.
11 12 13 |
# File 'lib/talking-capistrano.rb', line 11 def skyper @skyper end |
.topic ⇒ Object
Returns the value of attribute topic.
10 11 12 |
# File 'lib/talking-capistrano.rb', line 10 def topic @topic end |
Class Method Details
.notify(text) ⇒ Object
25 26 27 |
# File 'lib/talking-capistrano.rb', line 25 def self.notify(text) @skyper.(pad_text text) unless @topic.nil? end |
.notify? ⇒ Boolean
21 22 23 |
# File 'lib/talking-capistrano.rb', line 21 def self.notify? @notify end |
.pad_text(text) ⇒ Object
29 30 31 |
# File 'lib/talking-capistrano.rb', line 29 def self.pad_text(text) "\\\\ #{text} //" end |
.set_notify(topic_exist) ⇒ Object
15 16 17 18 19 |
# File 'lib/talking-capistrano.rb', line 15 def self.set_notify(topic_exist) @notify = topic_exist @topic = topic_exist if topic_exist @skyper = SkypeScriptInvoker.new(@topic) end |