cloud_snapshooter 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a886555e84d26e9f184f2d25bcf785b63d121d5
4
- data.tar.gz: 187f16ec3c74b9cdff09d3c8982b4ff3fc206407
3
+ metadata.gz: d5756f2e7ecaa47b816a8fb0e9d7823e9862165d
4
+ data.tar.gz: 3cdbb98f17ee3b6eef74798727d341c7cb114fd0
5
5
  SHA512:
6
- metadata.gz: 2f4f0428df6de654a4b6b70b48037620acb1f2a71a1100a68266ae99e51837d7420efc472a57b4899cb9378f5a2a7fd017ba824e24f30041910375d2e76638af
7
- data.tar.gz: 6d5968056bd4087e9f7abc727e3c056d8bc0af54808b6f373ad0c7eecbcdcda4daacdc96fcb23764dfa825305654a8a6e297efb9a546eaa614081eafe9610457
6
+ metadata.gz: e3012e9580dc0b7ae8a1e471d936c5a366901fc3626bb72b8dad1bdcc8a8d1f4c17a6dd17b0891cca39eb9c2a3bed1aa449f53a4d825cd53a54eb09d2d7d39c9
7
+ data.tar.gz: 6bb7494f4c7e6988898c85fb559c4e13b123102adfbf37613d5350f598cbfce03dbf16edcd4f5e9b9ae3aab18db6dfa3ebd5d995d5e097522043354febcd738e
data/README.md CHANGED
@@ -41,6 +41,18 @@ CloudSnapshooter::Shoot.ec2_snapshot('vol-xxxxxxxx','description')
41
41
  #=> <AWS::EC2::Snapshot id:snap-yyyyyyyy>
42
42
  ```
43
43
 
44
+ Executable commands
45
+
46
+ ```bash
47
+ $ cloudsnapshooter ec2 vol-xxxxxxxx description
48
+ ```
49
+
50
+ Or
51
+
52
+ ```bash
53
+ $ bundle exec ruby cloudsnapshooter ec2 vol-xxxxxxxx description
54
+ ```
55
+
44
56
  ## Contributing
45
57
 
46
58
  1. Fork it ( https://github.com/Lorentzca/cloud_snapshooter/fork )
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'cloud_snapshooter'
4
+
5
+ provider = ARGV[0]
6
+ volume_id = ARGV[1]
7
+ description = ARGV[2]
8
+
9
+ if provider == 'ec2'
10
+ CloudSnapshooter::Shoot.ec2_snapshot(volume_id, description)
11
+ else
12
+ puts 'Invalid provider'
13
+ end
@@ -1,3 +1,3 @@
1
1
  module CloudSnapshooter
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -2,6 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  describe CloudSnapshooter do
4
4
  it 'has a version number' do
5
- expect(CloudSnapshooter::VERSION).to eq('1.0.1')
5
+ expect(CloudSnapshooter::VERSION).to eq('1.0.3')
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_snapshooter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kota Kunishima
@@ -69,7 +69,8 @@ dependencies:
69
69
  description: Take cloud snapshot
70
70
  email:
71
71
  - kunishima@feedforce.jp
72
- executables: []
72
+ executables:
73
+ - cloudsnapshooter
73
74
  extensions: []
74
75
  extra_rdoc_files: []
75
76
  files:
@@ -80,6 +81,7 @@ files:
80
81
  - LICENSE.txt
81
82
  - README.md
82
83
  - Rakefile
84
+ - bin/cloudsnapshooter
83
85
  - cloud_snapshooter.gemspec
84
86
  - lib/cloud_snapshooter.rb
85
87
  - lib/cloud_snapshooter/shoot.rb