capistrano-scope 0.0.7 → 0.0.8

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 (2) hide show
  1. data/README +27 -4
  2. metadata +3 -3
data/README CHANGED
@@ -1,3 +1,22 @@
1
+ Lightweight command line server selection for capistrano. Rather than having
2
+ to blast a task across all servers with a given role or as with
3
+ multistage having to group all of your servers into separate files ahead of
4
+ time. With this package you can pick groups or sub groups of servers or even
5
+ individual servers to execute tasks on via the command line. For example:
6
+
7
+ $ cap @:clienta:projectx:production:app:1 app:install_bundler
8
+ $ cap @:clienta:projecty:all server:deploy_authorized_keys USERS='john_doe jane_doe'
9
+ $ cap @:all nagios:nrpe:deploy
10
+
11
+ Keep in mind that this offers additional functionality
12
+ to capistrano and takes away nothing. It can be used this in combination
13
+ with multistage and role based server and task definitions.
14
+
15
+
16
+ From a config file perspective the only new functionality is the scope.server
17
+ and scope.role methods. From a command line persective all that has been
18
+ added is the @: namespace which contains all the server scope tasks.
19
+
1
20
 
2
21
 
3
22
  -------------------------------------------------------------------------
@@ -340,7 +359,11 @@ Servers:
340
359
 
341
360
 
342
361
 
343
- # Keep in mind through this that this offers additional functionality
344
- # to capistrano and takes away nothing. You can still use the built in
345
- # server and role methods to define servers that you want for all commands
346
- # and you can use this in combination with multistage.
362
+ = How it Works
363
+
364
+ The implementation behind this is simple. When the configuration is
365
+ loaded it generates tasks for each server and server group in memory. Each of these
366
+ tasks is not much more than a list of capistrano server and role method calls.
367
+ When you call one of the scope tasks from the command line the task executes
368
+ and the roles and servers are defined just in time for the next task on the
369
+ command line to execute on them.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-scope
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kirt Fitzpatrick