cinch-deploy 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +14 -0
- data/README.md +17 -0
- data/lib/cinch/plugins/deploy.rb +27 -0
- metadata +61 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e1d35a39bb5a86e48e2aa93c48c21d7fd1923f8d
|
4
|
+
data.tar.gz: c66bf799a2ad3e0213e707e3a7cd545c37239af6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 75b56b76d5bbe1fabeafbbf4c67b177fb2752b2448281d56e83a15b02d0b559d3527ea79301acca983dd7336626b87d3e969b767abab5dffcd5c00d5f21f1c1e
|
7
|
+
data.tar.gz: ade2b2c9fdfffed7aa882ee7802d5fd3ec26a169dfb17a230bf7e5ad99fe1f0838e4fb40a261b56f57d274ba2bb217b975c3c2d4892e82ca65070fa0aa8c85c7
|
data/LICENSE
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
Copyright (c) 2013 Michal Papis
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
14
|
+
|
data/README.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Cinch deploy plugin
|
2
|
+
|
3
|
+
A Cinch plugin to start deploy process via irc messages.
|
4
|
+
|
5
|
+
## Configuration
|
6
|
+
|
7
|
+
with `smfbot`:
|
8
|
+
|
9
|
+
plugins:
|
10
|
+
"Cinch::Plugins::Deploy":
|
11
|
+
:configurations:
|
12
|
+
- :users:
|
13
|
+
- me
|
14
|
+
:channels:
|
15
|
+
- '#my-app'
|
16
|
+
:trigger: 'deploy-my-app'
|
17
|
+
:command: './deploy-my-app.sh'
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Cinch
|
2
|
+
module Plugins
|
3
|
+
class Deploy
|
4
|
+
include Cinch::Plugin
|
5
|
+
|
6
|
+
listen_to :message
|
7
|
+
|
8
|
+
def listen(m)
|
9
|
+
return if @running
|
10
|
+
@running = true
|
11
|
+
config[:configurations].each do |config|
|
12
|
+
if config[:channels].include?(m.channel.to_s) and config[:users].include?(m.user.nick) and m.message =~ Regexp.new(config[:trigger])
|
13
|
+
IO.popen(config[:command]) do |handle|
|
14
|
+
while line = handle.gets
|
15
|
+
m.reply line, true
|
16
|
+
end
|
17
|
+
end
|
18
|
+
else
|
19
|
+
m.reply "ch:#{m.channel.to_s} usr:#{m.user.nick} msg:#{m.message}", true
|
20
|
+
end
|
21
|
+
end
|
22
|
+
@running = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cinch-deploy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michal Papis
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-11-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: cinch
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2'
|
27
|
+
description: A Cinch plugin to start deploy process via irc messages.
|
28
|
+
email:
|
29
|
+
- mpapis@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- LICENSE
|
35
|
+
- README.md
|
36
|
+
- lib/cinch/plugins/deploy.rb
|
37
|
+
homepage: https://github.com/mpapis/cinch-deploy
|
38
|
+
licenses:
|
39
|
+
- Apache 2.0
|
40
|
+
metadata: {}
|
41
|
+
post_install_message:
|
42
|
+
rdoc_options: []
|
43
|
+
require_paths:
|
44
|
+
- lib
|
45
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 1.9.1
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
requirements: []
|
56
|
+
rubyforge_project:
|
57
|
+
rubygems_version: 2.1.11
|
58
|
+
signing_key:
|
59
|
+
specification_version: 4
|
60
|
+
summary: A Cinch plugin to start deploy process via irc messages.
|
61
|
+
test_files: []
|