capistrano_api_docs_external_git 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/capistrano_api_docs_external_git.gemspec +1 -1
- data/lib/capistrano/tasks/api_docs_external_git.rb +6 -8
- 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: 55ef7c897261d97b66a8c60b03209f2e638b3bd0
|
4
|
+
data.tar.gz: e47564876452f34bd102662e12742cbd1b4742ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f2075facb91c7f68811b9d9e1c10ec02724dc9b688253da68847599bd0f685ecc8a1e659b700d695ec780373551fb853d5104e4b2f437c367ec8f57a9536e78
|
7
|
+
data.tar.gz: 3a4ee2c32090c7521c281f4f286c5ba4e914392adbd6054893ee2b92d41f55e2c780f4e06e25e56d983503cf8bf990892a4b7f11ff23c4d3d23d46ca8d611877
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*.gem
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "capistrano_api_docs_external_git"
|
7
|
-
spec.version = "1.0.
|
7
|
+
spec.version = "1.0.2"
|
8
8
|
spec.authors = ["DevOps Team"]
|
9
9
|
spec.email = ["devops@ndrive.com"]
|
10
10
|
spec.summary = %q{Add tasks to capistrano to a Rails project to work with gem api_docs.}
|
@@ -8,9 +8,7 @@ namespace :api_docs_external_git do
|
|
8
8
|
set :api_docs_path, fetch(:rails_root).join("doc", "api")
|
9
9
|
|
10
10
|
task :setup do
|
11
|
-
|
12
|
-
puts "Updating API Documentation"
|
13
|
-
puts "**********************************"
|
11
|
+
info "Updating API documentation"
|
14
12
|
invoke :'api_docs_external_git:clone_repo'
|
15
13
|
invoke :'api_docs_external_git:copy_files'
|
16
14
|
invoke :'api_docs_external_git:add_files_git'
|
@@ -19,7 +17,7 @@ namespace :api_docs_external_git do
|
|
19
17
|
|
20
18
|
desc 'Clone documentation repository to tmp folder'
|
21
19
|
task :clone_repo do
|
22
|
-
|
20
|
+
info "Cloning #{fetch(:doc_git_repository)} for temporary folder"
|
23
21
|
@git_repo = Git.clone(fetch(:doc_git_repository), fetch(:doc_repository_name), path: fetch(:rails_root_tmp_path))
|
24
22
|
end
|
25
23
|
|
@@ -30,20 +28,20 @@ namespace :api_docs_external_git do
|
|
30
28
|
|
31
29
|
FileUtils.rm_r destination_folder, force: true
|
32
30
|
|
33
|
-
|
31
|
+
info "Copying documentation files"
|
34
32
|
FileUtils.mkdir_p destination_folder
|
35
33
|
FileUtils.cp_r files, destination_folder
|
36
34
|
end
|
37
35
|
|
38
36
|
desc 'Remove documentation repository'
|
39
37
|
task :remove_files do
|
40
|
-
|
38
|
+
info "Removing documentation repository"
|
41
39
|
FileUtils.rm_r fetch(:rails_root_tmp_path).join(fetch(:doc_repository_name))
|
42
40
|
end
|
43
41
|
|
44
42
|
desc 'Add files to documentation git'
|
45
43
|
task :add_files_git do
|
46
|
-
|
44
|
+
info "Saving documentation files on git repository"
|
47
45
|
|
48
46
|
@git_repo.add(all: true)
|
49
47
|
begin
|
@@ -56,4 +54,4 @@ namespace :api_docs_external_git do
|
|
56
54
|
end
|
57
55
|
|
58
56
|
before 'deploy:finishing', 'api_docs_external_git:setup'
|
59
|
-
end
|
57
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano_api_docs_external_git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DevOps Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|
@@ -60,6 +60,7 @@ executables: []
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
+
- ".gitignore"
|
63
64
|
- Gemfile
|
64
65
|
- Gemfile.lock
|
65
66
|
- LICENSE.txt
|
@@ -89,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
90
|
version: '0'
|
90
91
|
requirements: []
|
91
92
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.4.
|
93
|
+
rubygems_version: 2.4.5
|
93
94
|
signing_key:
|
94
95
|
specification_version: 4
|
95
96
|
summary: Add tasks to capistrano to a Rails project to work with gem api_docs.
|