capistrano-service 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ *.gem
@@ -0,0 +1,16 @@
1
+ # Capistrano::service Changelog
2
+
3
+ Reverse Chronological Order:
4
+
5
+ ## `0.0.2`
6
+
7
+ https://github.com/crushlovely/capistrano-service/compare/v0.0.1...v0.0.2
8
+
9
+ * Minor Changes
10
+ * Added support for reload command.
11
+
12
+ ## `0.0.1`
13
+
14
+ Initial release.
15
+
16
+ * Support for start, stop, restart, and status commands.
data/README.md CHANGED
@@ -37,10 +37,12 @@ cap service:nginx:restart # Restart service: nginx
37
37
  cap service:nginx:start # Start service: nginx
38
38
  cap service:nginx:status # Status for service: nginx
39
39
  cap service:nginx:stop # Stop service: nginx
40
+ cap service:nginx:reload # Reload service: nginx
40
41
  cap service:unicorn:restart # Restart service: unicorn
41
42
  cap service:unicorn:start # Start service: unicorn
42
43
  cap service:unicorn:status # Status for service: unicorn
43
44
  cap service:unicorn:stop # Stop service: unicorn
45
+ cap service:unicorn:reload # Reload service: unicorn
44
46
  ```
45
47
 
46
48
  ### Service Roles
@@ -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-service'
7
- spec.version = '0.0.1'
7
+ spec.version = '0.0.2'
8
8
  spec.authors = ['PJ Kelly']
9
9
  spec.email = ['pj@crushlovely.com']
10
10
  spec.description = %q{Cleanly manage your Linux services with Capistrano 3.x}
@@ -28,6 +28,13 @@ Capistrano::Configuration.env.fetch(:services, []).each do |service|
28
28
  info capture("sudo service #{service} status")
29
29
  end
30
30
  end
31
+
32
+ desc "Reload service: #{service}"
33
+ Rake::Task.define_task(:reload) do |t|
34
+ on roles fetch(:"#{service}_roles", :all) do
35
+ info capture("sudo service #{service} reload")
36
+ end
37
+ end
31
38
  end
32
39
  end
33
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-22 00:00:00.000000000 Z
12
+ date: 2014-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -66,6 +66,8 @@ executables: []
66
66
  extensions: []
67
67
  extra_rdoc_files: []
68
68
  files:
69
+ - .gitignore
70
+ - CHANGELOG.md
69
71
  - Gemfile
70
72
  - LICENSE
71
73
  - README.md