gradle-to-capistrano 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +13 -5
- data/Gemfile.lock +52 -0
- data/README.rdoc +6 -3
- data/VERSION +1 -0
- data/lib/capistrano/recipes/deploy/strategy/gradle_build.rb +7 -3
- metadata +9 -5
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
Y2ZhMzZiMjgzZGJlNmZiMTNmNmY5ZGU2ODNmYTUxMmQwNWY4NjU5Mg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZDVkZDBlNDdmMDM0MDA4MzZiNDFkZDQxNWYyY2RiYWIzYWE1YjRmZA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NTM3OTU4NDEwNjYwMzI0ODM0YzFmZmY2ZTlhZTBkMDBlZDc1MjZmZDI2Zjg2
|
10
|
+
NGNhM2U4ZjUwNzYwOTk2OThmODc5NGIzOTBiYTUzZGE0MzQ3MmY4MWU4YzRh
|
11
|
+
ZjRiNDkxZjQ1ZjJlODJmYmMwNjdkNWQyMTI1YzViY2JjMDlhODI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
OTJhMWMwOGYwMmY1ZWVhMGU3YWRhMmVjYzE0ZTBhN2NkZDAzMTUxZjBjYzQy
|
14
|
+
YzljN2I2OWFlMWFkNTk3NWQ0MmMxYjBkZGNiZDhjOWI0NjYwNDlhM2EwYjAy
|
15
|
+
ZTdkMDk2ODIwZmZkYTJmNWMyZmE5MmRjZWVkMjhjNzJkYjNiYzg=
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.5)
|
5
|
+
builder (3.2.2)
|
6
|
+
faraday (0.8.8)
|
7
|
+
multipart-post (~> 1.2.0)
|
8
|
+
git (1.2.6)
|
9
|
+
github_api (0.10.1)
|
10
|
+
addressable
|
11
|
+
faraday (~> 0.8.1)
|
12
|
+
hashie (>= 1.2)
|
13
|
+
multi_json (~> 1.4)
|
14
|
+
nokogiri (~> 1.5.2)
|
15
|
+
oauth2
|
16
|
+
hashie (2.0.5)
|
17
|
+
highline (1.6.19)
|
18
|
+
httpauth (0.2.0)
|
19
|
+
jeweler (1.8.7)
|
20
|
+
builder
|
21
|
+
bundler (~> 1.0)
|
22
|
+
git (>= 1.2.5)
|
23
|
+
github_api (= 0.10.1)
|
24
|
+
highline (>= 1.6.15)
|
25
|
+
nokogiri (= 1.5.10)
|
26
|
+
rake
|
27
|
+
rdoc
|
28
|
+
json (1.8.0)
|
29
|
+
jwt (0.1.8)
|
30
|
+
multi_json (>= 1.5)
|
31
|
+
multi_json (1.8.0)
|
32
|
+
multi_xml (0.5.5)
|
33
|
+
multipart-post (1.2.0)
|
34
|
+
nokogiri (1.5.10)
|
35
|
+
oauth2 (0.9.2)
|
36
|
+
faraday (~> 0.8)
|
37
|
+
httpauth (~> 0.2)
|
38
|
+
jwt (~> 0.1.4)
|
39
|
+
multi_json (~> 1.0)
|
40
|
+
multi_xml (~> 0.5)
|
41
|
+
rack (~> 1.2)
|
42
|
+
rack (1.5.2)
|
43
|
+
rake (10.1.0)
|
44
|
+
rdoc (4.0.1)
|
45
|
+
json (~> 1.4)
|
46
|
+
|
47
|
+
PLATFORMS
|
48
|
+
ruby
|
49
|
+
|
50
|
+
DEPENDENCIES
|
51
|
+
bundler (~> 1.0)
|
52
|
+
jeweler (~> 1.8.7)
|
data/README.rdoc
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
This project is used to integrate gradle projects with capistrano deploy scripts.
|
4
4
|
|
5
5
|
First install the gem:
|
6
|
-
|
6
|
+
gem install gradle-to-capistrano
|
7
7
|
|
8
8
|
Configure your gradle file with:
|
9
9
|
|
@@ -11,15 +11,18 @@ Configure your gradle file with:
|
|
11
11
|
apply plugin:'application'
|
12
12
|
|
13
13
|
distTar {
|
14
|
-
|
14
|
+
if (project.hasProperty("tarName")) {
|
15
|
+
archiveName = "$tarName"
|
16
|
+
}
|
15
17
|
}
|
16
18
|
}
|
17
19
|
|
18
|
-
And just set
|
20
|
+
And just set :deploy_via to gradle_build:
|
19
21
|
|
20
22
|
set :deploy_via, :gradle_build
|
21
23
|
set :gradle_cmd, ":my-fucking-owesome-project:distTar -PtarName={release_name}"
|
22
24
|
set :gradle_home, "/opt/gradle-1.8/bin"
|
25
|
+
set :gradle_working_dir, "my-fucking-owesome-project"
|
23
26
|
|
24
27
|
Cool! Now you can deploy you gradle application.
|
25
28
|
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.2
|
@@ -6,8 +6,12 @@ module Capistrano
|
|
6
6
|
class GradleBuild < Copy
|
7
7
|
def deploy!
|
8
8
|
execute "Running gradle build command" do
|
9
|
-
|
10
|
-
|
9
|
+
unless self.gradle_working_dir
|
10
|
+
set :gradle_working_dir, "./"
|
11
|
+
end
|
12
|
+
|
13
|
+
run_locally "cd #{gradle_working_dir} && #{gradle_home}/gradle #{gradle_cmd.gsub!('{release_name}', "#{File.basename(destination)}.tar")}"
|
14
|
+
run_locally "cd #{gradle_working_dir} && mv build/distributions/#{File.basename(destination)}.tar /tmp/"
|
11
15
|
end
|
12
16
|
|
13
17
|
execute "Decompressing gradle build to put REVISON file" do
|
@@ -21,7 +25,7 @@ module Capistrano
|
|
21
25
|
end
|
22
26
|
|
23
27
|
def rollback_changes
|
24
|
-
run_locally "rm -rf build/distributions/*"
|
28
|
+
run_locally "cd #{gradle_working_dir} && rm -rf build/distributions/*"
|
25
29
|
run_locally "rm -rf /tmp/#{File.basename(destination)}*"
|
26
30
|
end
|
27
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gradle-to-capistrano
|
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
|
- Marcos Sousa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,16 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: !binary |-
|
20
|
+
MS4w
|
20
21
|
type: :development
|
21
22
|
prerelease: false
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
25
|
- - ~>
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
+
version: !binary |-
|
28
|
+
MS4w
|
27
29
|
- !ruby/object:Gem::Dependency
|
28
30
|
name: jeweler
|
29
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -49,9 +51,11 @@ extra_rdoc_files:
|
|
49
51
|
files:
|
50
52
|
- .document
|
51
53
|
- Gemfile
|
54
|
+
- Gemfile.lock
|
52
55
|
- LICENSE.txt
|
53
56
|
- README.rdoc
|
54
57
|
- Rakefile
|
58
|
+
- VERSION
|
55
59
|
- lib/capistrano/recipes/deploy/strategy/gradle_build.rb
|
56
60
|
- lib/gradle-to-capistrano.rb
|
57
61
|
- test/helper.rb
|
@@ -76,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
80
|
version: '0'
|
77
81
|
requirements: []
|
78
82
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.1.5
|
80
84
|
signing_key:
|
81
85
|
specification_version: 4
|
82
86
|
summary: Capistrano recipe to run gradle commands to generate deployable artifacts
|