Class: Cinch::Plugins::Deploy
- Inherits:
-
Object
- Object
- Cinch::Plugins::Deploy
- Includes:
- Cinch::Plugin
- Defined in:
- lib/cinch/plugins/deploy.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Deploy
constructor
A new instance of Deploy.
- #listen(m) ⇒ Object
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.}", true exception(e) end |