Module: TalkingCapistrano::SkypeNotification

Defined in:
lib/talking-capistrano.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.skyperObject

Returns the value of attribute skyper.



11
12
13
# File 'lib/talking-capistrano.rb', line 11

def skyper
  @skyper
end

.topicObject

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.send_message(pad_text text) unless @topic.nil?
end

.notify?Boolean

Returns:

  • (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