deplay 1.0.0 → 1.0.1

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.
Files changed (3) hide show
  1. data/README.md +29 -21
  2. data/lib/deplay.rb +1 -0
  3. metadata +2 -2
data/README.md CHANGED
@@ -1,56 +1,64 @@
1
1
  [![endorse](http://api.coderwall.com/jeroenr/endorsecount.png)](http://coderwall.com/jeroenr)
2
2
 
3
- # debloy
3
+ # deplay
4
4
 
5
- debloy is a capistrano plugin to facilitate the deployment of debian packages (inspired by supply_drop). It works by simply copying (using rsync, or scp) your debian packages to your servers and installing them through the package manager
5
+ deplay is a capistrano plugin to facilitate the deployment of Play! applications (inspired by supply_drop). It works by packaging your Play! application and copying (using rsync, or scp) it to your servers
6
6
 
7
7
  ### Installation
8
8
 
9
- gem install debloy
9
+ gem install deplay
10
10
 
11
11
  or with Bundler
12
12
 
13
- gem 'debloy'
13
+ gem 'deplay'
14
14
 
15
15
  ### Tasks
16
16
 
17
- cap debloy:bootstrap
17
+ cap deplay:setup
18
18
 
19
- This sets up the environment for dpkg or apt deployment, depending on your configuration.
19
+ This sets up the environment for Play! deployment, depending on your configuration.
20
20
 
21
- cap debloy
21
+ cap deplay:deploy_dev
22
22
 
23
- This deploys the debian packages on the target servers.
23
+ This deploys the Play! application on the target servers using development configuration.
24
24
 
25
- cap debloy:teardown
25
+ cap deplay:deploy_prod
26
26
 
27
- Cleans up the environment.
27
+ This deploys the Play! application on the target servers using production configuration.
28
+
29
+ cap deplay:stop
30
+
31
+ Stops the Play! application.
32
+
33
+ cap deplay:start
34
+
35
+ Starts the Play! application.
28
36
 
29
37
  ### Configuration
30
38
 
31
39
  At the top of your deploy.rb
32
40
 
33
41
  require 'rubygems'
34
- require 'debloy'
42
+ require 'deplay'
35
43
 
36
44
  then optionally set some variables
37
45
 
38
- set :debian_source, '.'
46
+ set :app_name, 'my_app'
39
47
 
40
- the directory containing your debian packages that will be rsynced to the servers.
48
+ the name of your app. Used for the log file and messages
41
49
 
42
- set :debian_target, '/tmp'
50
+ set :log_dir, '/var/log'
43
51
 
44
- the temp directory on the target machine to hold the packages before installing.
52
+ the log directory on the target machine.
45
53
 
46
- set :debian_package_manager, 'dpkg'
54
+ set :prod_conf, 'prod.conf'
47
55
 
48
- the debian package manager to use (one of [dpkg, apt]).
56
+ the production configuration file to use.
49
57
 
50
- set :debian_stream_log, false
58
+ set :deploy_to, '/var/lib/my_app'
51
59
 
52
- determines whether to stream the command output.
60
+ the path to deploy to.
53
61
 
54
- set :debian_filter, '*'
62
+ set :project_home, '.'
55
63
 
56
- a glob syntax filter to determine which packages to deploy. By default all will be deployed.
64
+ the location of your Play! project (local path).
@@ -61,6 +61,7 @@ Capistrano::Configuration.instance.load do
61
61
  end
62
62
 
63
63
  task :copy_app_files do
64
+ run "rm -fr #{deploy_to}/target"
64
65
  upload "#{project_home}/target", deploy_to, :via => :scp, :recursive => true
65
66
  end
66
67
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-14 00:00:00.000000000 Z
13
+ date: 2013-03-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano