zfben_capistrano 0.0.0 → 0.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.
data/Readme.md CHANGED
@@ -4,10 +4,10 @@ Just add some default capistrano tasks
4
4
 
5
5
  ## Install
6
6
 
7
- Gemfile
8
-
9
- gem 'zfben_capistrano', require: nil
10
-
11
- config/deloy.rb
7
+ ```ruby
8
+ # Gemfile
9
+ gem 'zfben_capistrano', require: false
12
10
 
11
+ # config/deloy.rb
13
12
  require 'zfben_capistrano'
13
+ ```
@@ -1,5 +1,23 @@
1
- require "zfben_capistrano/version"
1
+ require 'capistrano'
2
2
 
3
- module ZfbenCapistrano
4
- # Your code goes here...
3
+ Capistrano::Configuration.instance(:must_exist).load do
4
+ desc 'rake start'
5
+ task :start do
6
+ run "cd #{deploy_to};rvm #{ruby_version} do rake start"
7
+ end
8
+
9
+ desc 'rake stop'
10
+ task :stop do
11
+ run "cd #{deploy_to};rvm #{ruby_version} do rake stop"
12
+ end
13
+
14
+ desc 'rake update'
15
+ task :update do
16
+ run "cd #{deploy_to};rvm #{ruby_version} do rake update"
17
+ end
18
+
19
+ desc 'rake backup'
20
+ task :backup do
21
+ run "cd #{deploy_to};rvm #{ruby_version} do rake backup"
22
+ end
5
23
  end
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "zfben_capistrano"
6
- s.version = '0.0.0'
6
+ s.version = '0.0.1'
7
7
  s.authors = ["Ben"]
8
8
  s.email = ["ben@zfben.com"]
9
9
  s.homepage = 'https://github.com/benz303/zfben_capistrano'
@@ -14,4 +14,6 @@ Gem::Specification.new do |s|
14
14
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
15
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
16
  s.require_paths = ["lib"]
17
+
18
+ s.add_dependency 'capistrano'
17
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zfben_capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,18 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-01-26 00:00:00.000000000 Z
13
- dependencies: []
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: capistrano
16
+ requirement: &20788060 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *20788060
14
25
  description: ''
15
26
  email:
16
27
  - ben@zfben.com
@@ -23,7 +34,6 @@ files:
23
34
  - Rakefile
24
35
  - Readme.md
25
36
  - lib/zfben_capistrano.rb
26
- - lib/zfben_capistrano/version.rb
27
37
  - zfben_capistrano.gemspec
28
38
  homepage: https://github.com/benz303/zfben_capistrano
29
39
  licenses: []
@@ -1,3 +0,0 @@
1
- module ZfbenCapistrano
2
- VERSION = "0.0.1"
3
- end