db_backups 0.0.3 → 0.0.4

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/bin/db_backups CHANGED
@@ -9,7 +9,7 @@ require 'db_backups/db_config'
9
9
 
10
10
  class DbBackups::CLI < Optitron::CLI
11
11
 
12
- class_opt :environment, 'Source Environment', :in => %w{staging uat production} , :default => :production
12
+ class_opt :environment, 'Source Environment', :in => %w{staging uat production} , :default => 'production'
13
13
 
14
14
  desc 'Index backups'
15
15
  def index
data/db_backups.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
19
19
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
20
20
  gem.require_paths = ["lib"]
21
21
 
22
- gem.add_dependency 'optitron'
22
+ gem.add_dependency 'optitron', '>= 0.3'
23
23
  gem.add_dependency 'fog'
24
24
  gem.add_dependency 'terminal-table'
25
25
 
@@ -21,7 +21,7 @@ module DbBackups
21
21
 
22
22
  def files
23
23
  @files ||= container.files.map { |f|
24
- DbBackup.new(f, :app => app, :environment => environment)
24
+ DbBackup.new(f, :app => app)
25
25
  }.select { |f|
26
26
  f.environment == environment
27
27
  }
@@ -3,14 +3,13 @@ require 'forwardable'
3
3
  class DbBackup
4
4
  extend Forwardable
5
5
 
6
- attr_reader :app, :environment
6
+ attr_reader :app
7
7
  def_delegators :@cloud_file, :last_modified, :content_length
8
8
  def_delegator :@cloud_file, :body, :read
9
9
 
10
10
  def initialize(cloud_file, opts={})
11
11
  @cloud_file = cloud_file
12
12
  @app = opts[:app]
13
- @environment = opts[:environment]
14
13
  end
15
14
 
16
15
  def environment
@@ -1,3 +1,3 @@
1
1
  module DbBackups
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_backups
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: '0.3'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: '0'
29
+ version: '0.3'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: fog
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: 753128801201890002
111
+ hash: 3532762536133801991
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: 753128801201890002
120
+ hash: 3532762536133801991
121
121
  requirements: []
122
122
  rubyforge_project:
123
123
  rubygems_version: 1.8.24