prun-ops 0.1.5 → 0.1.6
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.
- checksums.yaml +4 -4
- data/README.md +23 -1
- data/lib/capistrano/diagnosis.rake +12 -0
- data/lib/prun-ops/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dc44e3125b41128d993124789270b3a5e7a9ac9
|
4
|
+
data.tar.gz: 854a1e558cf348d08a139e1af953d48396afa858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3548fb7aa7e082c0769ceb863ed2539aa544ac8d6656e1d8544f53ddb897a0c10be089bee6c88036ed3a8cf4c526ed41b08c2a15be7de57887b288cb18be311b
|
7
|
+
data.tar.gz: 3539089b26c8bb8b64ea3c8031ff5647b8e0b42628682e8f44771ae85af1caa4b5c10a1f1dc74909124dc2f32f28efad2ae9d802c351f8b2d1430ca82d07c82f
|
data/README.md
CHANGED
@@ -122,6 +122,7 @@ Some capistrano commands useful to connect to server and help with the problem s
|
|
122
122
|
* `cap [stg] c` open a rails console with server
|
123
123
|
* `cap [stg] dbconsole` open a rails database console with server
|
124
124
|
* `cap [stg] x[COMMAND]` execute any command in server provided as COMMAND (i.e.: cap production x['free -m'])
|
125
|
+
* `cap [stg] rake[TASK]` execute any rake task in server provided as TASK (i.e.: cap production rake[db:version])
|
125
126
|
|
126
127
|
### Monitoring
|
127
128
|
|
@@ -129,6 +130,23 @@ Recommend to configure your Rails server with [PRUN Chef recipe](https://github.
|
|
129
130
|
|
130
131
|
At this moment we are implementing [NewRelic](http://newrelic.com/) monitoring, including as dependency ['newrelic_rpm'](https://github.com/newrelic/rpm) gem. To configure yourproject you just need to create an account at [NewRelic](http://newrelic.com/) and follow the instructions (creating a 'config/newrelic.yml file with your license_key).
|
131
132
|
|
133
|
+
### TODO: Configuration management
|
134
|
+
|
135
|
+
`configure.yml`: for variables with environment dependency
|
136
|
+
|
137
|
+
`cap [stg] configure`
|
138
|
+
`cap [stg] configure:base`: for packages, git, time ...
|
139
|
+
`cap [stg] configure:ruby`: ruby version
|
140
|
+
`cap [stg] configure:pgsql`
|
141
|
+
`cap [stg] configure:nginx`
|
142
|
+
`cap [stg] configure:node`
|
143
|
+
|
144
|
+
`cap [stg] configure:newrelic`
|
145
|
+
`cap [stg] configure:jenkins`
|
146
|
+
`cap [stg] configure:wordpress`
|
147
|
+
|
148
|
+
|
149
|
+
|
132
150
|
## Contributing
|
133
151
|
|
134
152
|
1. Fork it ( https://github.com/[my-github-username]/prun-ops/fork )
|
@@ -196,4 +214,8 @@ require 'capistrano/prun-ops'
|
|
196
214
|
|
197
215
|
### v0.1.2
|
198
216
|
|
199
|
-
* Add `cap stage dbconsole` to open a database console.
|
217
|
+
* Add `cap stage dbconsole` to open a database console.
|
218
|
+
|
219
|
+
### v0.1.6
|
220
|
+
|
221
|
+
* Add `cap stage rake[db:create]` to execute a rake task in remote server.
|
@@ -42,6 +42,18 @@ task :x, :command do |task, args|
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
+
desc 'Executes a rake task in server. i.e.: cap staging rake[db:version]'
|
46
|
+
task :rake, :remote_task do |task, args|
|
47
|
+
on roles(:app) do
|
48
|
+
within release_path do
|
49
|
+
with rails_env: fetch(:stage) do
|
50
|
+
execute :rake, "#{args[:remote_task]}"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
|
45
57
|
def run_in(host, cmd)
|
46
58
|
exec "ssh #{host.user}@#{host.hostname} -p #{host.port || '22'} -tt '#{cmd}'"
|
47
59
|
end
|
data/lib/prun-ops/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prun-ops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Lebrijo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|