playframework-capistrano 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cf1d4de5136d6119d3b742378e37ab91dbbe6d10
4
+ data.tar.gz: 78a9443cf32c7da10f8268deb3ba43847fd6efb8
5
+ SHA512:
6
+ metadata.gz: b2269c7bb11f8ec1764cd35b38e6681206e4e6739131489dfabfaf446ae971aedf553c6735943bd251b69bf7de4e1d37c0d71aeb06e262391466c9b7dce4fdf5
7
+ data.tar.gz: d722fed69cdf6878cced9209e539bd6582cfc1f9485383255227c1f248b3dd1d5dd8b6eb084a7cfb623f120a3606855612ce85513fdc0914cd02d895e7c0becb
data/README.md CHANGED
@@ -2,12 +2,22 @@
2
2
 
3
3
  PlayFramework / Capistrano Integration Gem.
4
4
 
5
+ ## Important
6
+
7
+ Use the branch `master` if you are developing with PlayFramework >= 2.2.0.
8
+
9
+ If you are stuck in previous versions of PlayFramework, go to `playframework-2.1.x-compatible` branch.
10
+
5
11
  ## Installation
6
12
 
7
13
  PlayFramework / Capistrano integration is available as a separate gem. Add this line to your application's [Gemfile](https://github.com/tomasmuller/playframework-neo4j-template/blob/master/Gemfile):
8
14
 
9
15
  gem 'playframework-capistrano'
10
16
 
17
+ or
18
+
19
+ gem 'playframework-capistrano', '0.0.5' # for PlayFramework < 2.2.0
20
+
11
21
  And then execute:
12
22
 
13
23
  $ bundle
@@ -15,7 +25,7 @@ And then execute:
15
25
  ## Usage
16
26
 
17
27
  Configure your project ([sample project](https://github.com/tomasmuller/playframework-neo4j-template)):
18
- - [Capfile](https://github.com/tomasmuller/playframework-neo4j-template/blob/master/Capfile)
28
+ - [Capfile](https://github.com/tomasmuller/playframework-neo4j-template/blob/master/Capfile)
19
29
  - [conf/deploy.rb](https://github.com/tomasmuller/playframework-neo4j-template/blob/master/conf/deploy.rb)
20
30
 
21
31
  Run `cap -vT` to see all the available tasks.
@@ -23,8 +23,8 @@ module Capistrano
23
23
 
24
24
  namespace :playframework do
25
25
  task :setup do
26
- put "#!/bin/bash\nnohup bash -c \"cd #{current_path} && target/start $* &>> #{current_path}/log/#{application}.log 2>&1\" &> /dev/null &", "#{current_path}/start.sh", :mode => '755', :via => :scp
27
- put "#!/bin/bash\npid=`cat RUNNING_PID 2> /dev/null`\nif [ \"$pid\" == \"\" ]; then echo '#{application} is not running'; exit 0; fi\necho 'Stopping #{application}...'\nkill -SIGTERM $pid", "#{current_path}/stop.sh", :mode => '755', :via => :scp
26
+ put "#!/bin/bash\nnohup bash -c \"cd #{current_path} && mkdir -p log && target/universal/stage/bin/#{application.downcase} $* &>> #{current_path}/log/#{application}.log 2>&1\" &> /dev/null &", "#{current_path}/start.sh", :mode => '755', :via => :scp
27
+ put "#!/bin/bash\npid=`cat #{current_path}/target/universal/stage/RUNNING_PID 2> /dev/null`\nif [ \"$pid\" == \"\" ]; then echo '#{application} is not running'; exit 0; fi\necho 'Stopping #{application}...'\nkill -SIGTERM $pid", "#{current_path}/stop.sh", :mode => '755', :via => :scp
28
28
  put "#!/bin/bash\nexport", "#{current_path}/envvars.sh", :mode => '755', :via => :scp
29
29
  end
30
30
 
@@ -1,5 +1,5 @@
1
1
  module Playframework
2
2
  class Capistrano
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,36 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playframework-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tomás Augusto Müller
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-07 00:00:00.000000000 Z
11
+ date: 2013-09-28 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: capistrano
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.0.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 2.0.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,17 +41,15 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: PlayFramework / Capistrano integration Gem
@@ -77,26 +70,25 @@ files:
77
70
  homepage: https://github.com/tomasmuller/playframework-capistrano
78
71
  licenses:
79
72
  - MIT
73
+ metadata: {}
80
74
  post_install_message:
81
75
  rdoc_options: []
82
76
  require_paths:
83
77
  - lib
84
78
  required_ruby_version: !ruby/object:Gem::Requirement
85
- none: false
86
79
  requirements:
87
- - - ! '>='
80
+ - - '>='
88
81
  - !ruby/object:Gem::Version
89
82
  version: '0'
90
83
  required_rubygems_version: !ruby/object:Gem::Requirement
91
- none: false
92
84
  requirements:
93
- - - ! '>='
85
+ - - '>='
94
86
  - !ruby/object:Gem::Version
95
87
  version: '0'
96
88
  requirements: []
97
89
  rubyforge_project:
98
- rubygems_version: 1.8.25
90
+ rubygems_version: 2.0.3
99
91
  signing_key:
100
- specification_version: 3
92
+ specification_version: 4
101
93
  summary: Deploy PlayFramework apps with Capistrano
102
94
  test_files: []