instrumental_tools 0.3.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -25,3 +25,30 @@ Collect statistics on commit counts in a given git repo. Execute in the repo di
25
25
  ```sh
26
26
  gitstrumental [INSTRUMENTAL_API_KEY]
27
27
  ```
28
+
29
+ ## Capistrano Integration
30
+
31
+ Add `require "instrumental_tools/capistrano"` to your capistrano
32
+ configuration and instrument_server will be restarted after your
33
+ deploy is finished. Additionally, you will need to add a new variable
34
+ to your capistrano file.
35
+
36
+ ```ruby
37
+ set :instrumental_key, "YOUR_KEY_HERE"
38
+ ```
39
+
40
+ The following configuration will be added:
41
+
42
+ ```ruby
43
+ after "deploy", "instrumental:restart_instrument_server"
44
+ after "deploy:migrations", "instrumental:restart_instrument_server"
45
+ ```
46
+
47
+ By default, this will attempt to restart the instrument_server command
48
+ on all the servers specified in your configuration. If you need to
49
+ limit the servers on which you restart the server, you can do
50
+ something like this in your capistrano configuration:
51
+
52
+ ```ruby
53
+ namespaces[:instrumental].tasks[:restart_instrument_server].options[:roles] = [:web, :worker]
54
+ ```
@@ -0,0 +1,15 @@
1
+ require 'capistrano'
2
+
3
+ if Capistrano::Configuration.instance
4
+ Capistrano::Configuration.instance.load do
5
+ namespace :instrumental do
6
+ desc "restart daemonized server; also starts up if not running"
7
+ task :restart_instrument_server do
8
+ run "cd #{current_path} && bundle exec instrument_server -k #{instrumental_key} -d restart"
9
+ end
10
+ end
11
+
12
+ after "deploy", "instrumental:restart_instrument_server"
13
+ after "deploy:migrations", "instrumental:restart_instrument_server"
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  module Instrumental
2
2
  module Tools
3
- VERSION = "0.3.2"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,10 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: instrumental_tools
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 2
10
- version: 0.3.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Elijah Miller
14
9
  - Christopher Zelenak
15
10
  - Kristopher Chambers
@@ -17,80 +12,62 @@ authors:
17
12
  autorequire:
18
13
  bindir: bin
19
14
  cert_chain: []
20
-
21
- date: 2012-01-11 00:00:00 Z
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
15
+ date: 2012-01-11 00:00:00.000000000 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
24
18
  name: json
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
19
+ requirement: &70277493718520 !ruby/object:Gem::Requirement
27
20
  none: false
28
- requirements:
29
- - - ">="
30
- - !ruby/object:Gem::Version
31
- hash: 3
32
- segments:
33
- - 0
34
- version: "0"
21
+ requirements:
22
+ - - ! '>='
23
+ - !ruby/object:Gem::Version
24
+ version: '0'
35
25
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: instrumental_agent
39
26
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ version_requirements: *70277493718520
28
+ - !ruby/object:Gem::Dependency
29
+ name: instrumental_agent
30
+ requirement: &70277493718000 !ruby/object:Gem::Requirement
41
31
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 1
46
- segments:
47
- - 0
48
- - 5
49
- version: "0.5"
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
35
+ version: '0.5'
50
36
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: pidly
54
37
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ version_requirements: *70277493718000
39
+ - !ruby/object:Gem::Dependency
40
+ name: pidly
41
+ requirement: &70277493717520 !ruby/object:Gem::Requirement
56
42
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 29
61
- segments:
62
- - 0
63
- - 1
64
- - 3
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
65
46
  version: 0.1.3
66
47
  type: :runtime
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: rake
70
48
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ version_requirements: *70277493717520
50
+ - !ruby/object:Gem::Dependency
51
+ name: rake
52
+ requirement: &70277493717040 !ruby/object:Gem::Requirement
72
53
  none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 3
77
- segments:
78
- - 0
79
- version: "0"
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
80
58
  type: :development
81
- version_requirements: *id004
59
+ prerelease: false
60
+ version_requirements: *70277493717040
82
61
  description: Tools for displaying information from and reporting to Instrumental (instrumentalapp.com)
83
- email:
62
+ email:
84
63
  - support@instrumentalapp.com
85
- executables:
64
+ executables:
86
65
  - gitstrumental
87
66
  - instrument_server
88
67
  - instrumental
89
68
  extensions: []
90
-
91
69
  extra_rdoc_files: []
92
-
93
- files:
70
+ files:
94
71
  - .gitignore
95
72
  - Gemfile
96
73
  - README.md
@@ -99,39 +76,30 @@ files:
99
76
  - bin/instrument_server
100
77
  - bin/instrumental
101
78
  - instrumental_tools.gemspec
79
+ - lib/instrumental_tools/capistrano.rb
102
80
  - lib/instrumental_tools/version.rb
103
81
  homepage: http://github.com/fastestforward/instrumental_tools
104
82
  licenses: []
105
-
106
83
  post_install_message:
107
84
  rdoc_options: []
108
-
109
- require_paths:
85
+ require_paths:
110
86
  - lib
111
- required_ruby_version: !ruby/object:Gem::Requirement
87
+ required_ruby_version: !ruby/object:Gem::Requirement
112
88
  none: false
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- hash: 3
117
- segments:
118
- - 0
119
- version: "0"
120
- required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
94
  none: false
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- hash: 3
126
- segments:
127
- - 0
128
- version: "0"
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
129
99
  requirements: []
130
-
131
100
  rubyforge_project:
132
- rubygems_version: 1.8.10
101
+ rubygems_version: 1.8.13
133
102
  signing_key:
134
103
  specification_version: 3
135
104
  summary: Command line tools for Instrumental
136
105
  test_files: []
137
-