amirotate 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed82d20df109ca419a0d0c5255a84339f5cb8c95
4
- data.tar.gz: 1666fc726a58652a1f14c8117133e2535e5b5956
3
+ metadata.gz: a2335338ba0c507bcf3e42674536f421adcecd3a
4
+ data.tar.gz: 1b0ea652f67a5d9497330191adb350870358322a
5
5
  SHA512:
6
- metadata.gz: 30df86b53fb028a5cb1424e1c56fee33b713ccf4858a162e5a2a6f0a96c84aa0ce2edf6df9e5bfb98a40ed89ba7dfe114e5c733db128f7a925e58b8dddd635c4
7
- data.tar.gz: ccc04eb4a280b3da2a013e3f8ceecb1dc851acd6a389bd5dc6e9e873195656eab349189954d4e2e2815635f3fc13dd56d74639b9bc378dba993832596771085b
6
+ metadata.gz: a837e635ff7fff36540ad0d07e6632fd430594e6c89952b45e238e4e525c521c64845d4b00883ca06385e8548c22683bd2d3b921b4e5f8fae5f5f7209260c062
7
+ data.tar.gz: 56200ced95e99a0cc8831069e9e0324c2c7b18f169705f25f10b97b83ba4406b7af5e2eda851aaa212a96986717adf34e3839f92ecbb52df0c4173b9b5a52c38
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Amirotate
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/amirotate`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Back up EC2 instances by Snapshot/AMI. Capable of managing backup retention period.
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,7 +20,21 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ `amirotate help` shows subcommands and options.
24
+
25
+ ### 1. Set the tag on EC2 instances
26
+
27
+ Amirotate use tags attached to EC2 instance to determine instances that should be backed-up.
28
+
29
+ You can set the tag by `amirotate setup`.
30
+
31
+ ### 2. Create image
32
+
33
+ `amirotate preserve` to find all your EC2 instances tagged with `amirotate:<profile name>:retention_period` and `CreateImage` them.
34
+
35
+ ### 3. Delete image/snapshot
36
+
37
+ `amirotate invalidate` to find all your outdated AMIs. Deregister them, then delete all snapshots associated with the AMI..
26
38
 
27
39
  ## Development
28
40
 
data/amirotate.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["y13i"]
10
10
  spec.email = ["email@y13i.com"]
11
11
 
12
- spec.summary = %()
13
- spec.description = %()
12
+ spec.summary = %(Back up EC2 instances by Snapshot/AMI.)
13
+ spec.description = %(Back up EC2 instances by Snapshot/AMI. Capable of managing backup retention period.)
14
14
  spec.homepage = "https://github.com/y13i/amirotate"
15
15
  spec.license = "MIT"
16
16
 
data/lib/amirotate/cli.rb CHANGED
@@ -26,7 +26,7 @@ module AMIRotate
26
26
 
27
27
  desc :preserve, "Create AMIs with given option by profile name."
28
28
  method_option :profile_name, default: "default"
29
- method_option :reboot, type: :boolean, default: true
29
+ method_option :reboot, type: :boolean, default: false
30
30
  method_option :dry_run, type: :boolean, default: false
31
31
  method_option :filter_tags
32
32
 
@@ -47,7 +47,7 @@ module AMIRotate
47
47
 
48
48
  desc :rotate, "Execute :preserve and :invalidate at a time."
49
49
  method_option :profile_name, default: "default"
50
- method_option :reboot, type: :boolean, default: true
50
+ method_option :reboot, type: :boolean, default: false
51
51
  method_option :expiration_offset, default: "30 minutes"
52
52
  method_option :retain_snapshot, type: :boolean, default: false
53
53
  method_option :dry_run, type: :boolean, default: false
@@ -1,3 +1,3 @@
1
1
  module AMIRotate
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amirotate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - y13i
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-26 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,7 +122,8 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description: ''
125
+ description: Back up EC2 instances by Snapshot/AMI. Capable of managing backup retention
126
+ period.
126
127
  email:
127
128
  - email@y13i.com
128
129
  executables:
@@ -168,5 +169,5 @@ rubyforge_project:
168
169
  rubygems_version: 2.4.5
169
170
  signing_key:
170
171
  specification_version: 4
171
- summary: ''
172
+ summary: Back up EC2 instances by Snapshot/AMI.
172
173
  test_files: []