vgh 0.1.0 → 0.1.1

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.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.1.1
2
+ [Bugs]
3
+ - Fix snapshot creation process
4
+ - Improve documentation
5
+
1
6
  === 0.1.0
2
7
  [Features]
3
8
  - Add remote backup option
@@ -14,9 +19,11 @@
14
19
  - Improve documentation
15
20
  - Fix Rakefile
16
21
 
22
+
17
23
  === 0.0.2
18
24
  [Bugs]
19
25
  - Minor code fixes
20
26
 
27
+
21
28
  === 0.0.1
22
29
  Initial release
data/README.rdoc CHANGED
@@ -8,8 +8,13 @@ A collection of custom scripts used on VladGh.com
8
8
  == Instalation
9
9
 
10
10
  Some system wide dependencies should be installed first:
11
+ * ruby 1.8 or 1.9
12
+ * rubygems (if ruby 1.8)
13
+ * ruby-dev
14
+ * build-essential
15
+ * libxslt & libxslt-dev
16
+ * libxml2 & libxml2-dev
11
17
 
12
- apt-get install libxslt-dev libxml2-dev
13
18
 
14
19
  Add this line to your application's Gemfile:
15
20
 
@@ -11,6 +11,9 @@ module Extended_EC2
11
11
  #
12
12
  class Snapshot
13
13
 
14
+ # @return [Object] The Snapshot object
15
+ attr_reader :snapshot
16
+
14
17
  # The workflow to create a snapshot:
15
18
  # - create snapshot
16
19
  # - add a name tag
@@ -18,7 +21,7 @@ class Snapshot
18
21
  # @param [String] volume_id The ID of the volume to snapshot
19
22
  # @param [String] volume_tag The Tag of the volume to snapshot
20
23
  def create(volume_id, volume_tag)
21
- snapshot(volume_id, volume_tag)
24
+ create_snapshot(volume_id, volume_tag)
22
25
  name_tag
23
26
  info_tag(volume_id)
24
27
  message.info "Creating and tagging snapshot \"#{snapshot.id}\""
@@ -27,9 +30,9 @@ class Snapshot
27
30
  # Creates a snapshot for the specified volume
28
31
  # @param [String] volume_id The ID of the volume to snapshot
29
32
  # @param [String] volume_tag The tag of the volume to snapshot
30
- # @return [String, nil] The newly created snapshot object
31
- def snapshot(volume_id, volume_tag)
32
- @snapshot = ec2.volumes[volume_id].
33
+ # @return [Object] The newly created snapshot object
34
+ def create_snapshot(volume_id, volume_tag)
35
+ @snapshot ||= ec2.volumes[volume_id].
33
36
  create_snapshot("Backup for #{volume_id}(#{volume_tag})")
34
37
  end
35
38
 
data/lib/vgh/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module VGH
2
2
  # Version number
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
 
5
5
  # Returns the version number
6
6
  def version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vgh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: