capistrano3-idobata 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/capistrano3-idobata.gemspec +1 -1
- data/lib/capistrano3-idobata.rb +0 -0
- data/lib/capistrano3/idobata.rb +1 -1
- data/lib/capistrano3/idobata/version.rb +1 -1
- data/lib/capistrano3/tasks/idobata.rake +8 -7
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2312c2388c13efa37f04bba09b5132c57739023
|
4
|
+
data.tar.gz: 6079580d0534c2d338d3bcfb3db4c80ac0db16a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 037724876f6872f02cd45cfeb71d3ec32876b272e7c2e0c3886433c03db3bdbcfdbf4026405b562b7fd511b20e3a63c231518182f6a1af89efe64a6ef75aae07
|
7
|
+
data.tar.gz: 40c42c06f73e8b9ccef93ada7bf8d9c1bbbe11c00ede157867f2eb356cef2e67e87e180f4dc89f264c6f85f47a1d60ab367f57f74a14e8a7c6729217859ae25a
|
data/README.md
CHANGED
@@ -6,14 +6,14 @@ Send notification of a deployment to Idobata
|
|
6
6
|
|
7
7
|
```ruby
|
8
8
|
# Gemfile
|
9
|
-
gem 'capistrano3-idobata'
|
9
|
+
gem 'capistrano3-idobata'
|
10
10
|
|
11
11
|
# Capfile
|
12
12
|
require 'capistrano3/idobata'
|
13
13
|
|
14
14
|
# config/deploy.rb
|
15
15
|
set :idobata_hook_url, 'https://idobata.io/hook/generic/XXXXX'
|
16
|
-
set :repository_url,
|
16
|
+
set :repository_url, 'https://github.com/XXXXX/XXXXX'
|
17
17
|
```
|
18
18
|
|
19
19
|
## Contributing
|
data/capistrano3-idobata.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["kirikiriyamama@icloud.com"]
|
11
11
|
spec.summary = %q{Send notification of a deployment to Idobata}
|
12
12
|
spec.description = %q{Send notification of a deployment to Idobata}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/spice-life/capistrano3-idobata"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
File without changes
|
data/lib/capistrano3/idobata.rb
CHANGED
@@ -14,9 +14,8 @@ namespace :idobata do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
task :finished do
|
17
|
-
|
18
|
-
|
19
|
-
revision_url = "#{repository_url}/commit/#{fetch(:current_revision)}"
|
17
|
+
branch_url = "#{fetch(:repository_url)}/tree/#{fetch(:branch)}"
|
18
|
+
revision_url = "#{fetch(:repository_url)}/commit/#{fetch(:current_revision)}"
|
20
19
|
|
21
20
|
message = "Branch <a href='#{branch_url}'>#{fetch(:branch)}</a> "
|
22
21
|
message += "(at <a href='#{revision_url}'>#{fetch(:current_revision)}</a>) "
|
@@ -39,11 +38,13 @@ namespace :idobata do
|
|
39
38
|
end
|
40
39
|
end
|
41
40
|
|
42
|
-
|
41
|
+
namespace :deploy do
|
42
|
+
before 'starting', 'idobata:setup'
|
43
43
|
|
44
|
-
after '
|
45
|
-
after '
|
46
|
-
after '
|
44
|
+
after 'started', 'idobata:notify:started'
|
45
|
+
after 'finished', 'idobata:notify:finished'
|
46
|
+
after 'failed', 'idobata:notify:failed'
|
47
|
+
end
|
47
48
|
|
48
49
|
def deployer
|
49
50
|
ENV['DEPLOYER'] || `git config user.name`.chomp
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano3-idobata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kirikiriyamama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -85,10 +85,11 @@ files:
|
|
85
85
|
- README.md
|
86
86
|
- Rakefile
|
87
87
|
- capistrano3-idobata.gemspec
|
88
|
+
- lib/capistrano3-idobata.rb
|
88
89
|
- lib/capistrano3/idobata.rb
|
89
90
|
- lib/capistrano3/idobata/version.rb
|
90
91
|
- lib/capistrano3/tasks/idobata.rake
|
91
|
-
homepage:
|
92
|
+
homepage: https://github.com/spice-life/capistrano3-idobata
|
92
93
|
licenses:
|
93
94
|
- MIT
|
94
95
|
metadata: {}
|