boxcutter 0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.markdown +25 -1
  2. data/lib/version.rb +1 -1
  3. metadata +4 -3
@@ -22,12 +22,36 @@ section for more information.
22
22
 
23
23
  Then load up the API in irb:
24
24
 
25
- ```irb
25
+ ```ruby
26
26
  $ irb -r './lib/boxcutter'
27
27
  1.9.3p194 :001 > apps = Boxcutter::LoadBalancer::Application.all
28
28
  => [#<Application id:'88888888-cccc-4444-8888-dddddddddddd' name:'example.com' ip_v4:'192.168.1.1' ip_v6:'::1'>]
29
29
  ```
30
30
 
31
+ Command-line script to remove a machine from a load balancer.
32
+
33
+ ```bash
34
+ $ ./bin/remove_machine.rb -h
35
+ Options:
36
+ --backend, -b <s>: Service backend name (default: default)
37
+ --hostname, -n <s>: Machine hostname to remove
38
+ --dryrun, -d: Don't actually remove the server from the backend
39
+ --help, -h: Show this message
40
+ ```
41
+
42
+ Command-line script to add a machine to a load balancer. This script
43
+ assumes you have two services, one for http and one for https. It will
44
+ add the machine to each service, but with the port set to 80.
45
+
46
+ ```bash
47
+ $ ./bin/add_machine.rb -h
48
+ Options:
49
+ --backend, -b <s>: Service backend name (default: default)
50
+ --hostname, -n <s>: Machine hostname to remove
51
+ --dryrun, -d: Don't actually remove the server from the backend
52
+ --help, -h: Show this message
53
+ ```
54
+
31
55
  This is definately a work in progress. The goal is to use this wrapper
32
56
  to add and remove servers from the load balancer during a deploy for
33
57
  zero downtime.
@@ -1,3 +1,3 @@
1
1
  module Boxcutter
2
- VERSION = "0.2"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxcutter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- version: "0.2"
9
+ - 1
10
+ version: 0.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Donald Plummer
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2012-06-15 00:00:00 Z
18
+ date: 2012-07-30 00:00:00 Z
18
19
  dependencies:
19
20
  - !ruby/object:Gem::Dependency
20
21
  name: faraday