Class: Cinch::Plugins::Deploy

Inherits:
Object
  • Object
show all
Includes:
Cinch::Plugin
Defined in:
lib/cinch/plugins/deploy.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Deploy

Returns a new instance of Deploy.



6
7
8
9
# File 'lib/cinch/plugins/deploy.rb', line 6

def initialize(*args)
  super
  @running = {}
end

Instance Method Details

#listen(m) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/cinch/plugins/deploy.rb', line 13

def listen(m)
  config[:configurations].each do |config|
    deploy(config[:command], m) if can_deploy?(config, m)
  end
rescue StandardError => e
  m.reply "exception - #{e.message}", true
  exception(e)
end