Skip to content

Instantly share code, notes, and snippets.

@komagata
Created May 29, 2009 15:40
Show Gist options
  • Save komagata/120015 to your computer and use it in GitHub Desktop.
Save komagata/120015 to your computer and use it in GitHub Desktop.
namespace :deploy do
namespace :notify do
desc 'Send release message to skype chat'
task :skype do
begin
require 'rb-skypemac'
rescue LoadError
puts 'rb-skypemac is required.'
end
chat_id = '#komagata1111/$xxxxxxxxxxxxx'
message = "cap: #{application}を#{stage}環境にデプロイしました。"
SkypeMac::Skype.send_(:command => "CHATMESSAGE #{chat_id} #{message}")
end
after :deploy, "deploy:notify:skype" if RUBY_PLATFORM =~ /i686-darwin/
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment