db_backups 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/db_backups +1 -1
- data/db_backups.gemspec +1 -1
- data/lib/db_backups/container.rb +1 -1
- data/lib/db_backups/db_backup.rb +1 -2
- data/lib/db_backups/version.rb +1 -1
- metadata +5 -5
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 =>
|
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
|
|
data/lib/db_backups/container.rb
CHANGED
data/lib/db_backups/db_backup.rb
CHANGED
@@ -3,14 +3,13 @@ require 'forwardable'
|
|
3
3
|
class DbBackup
|
4
4
|
extend Forwardable
|
5
5
|
|
6
|
-
attr_reader :app
|
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
|
data/lib/db_backups/version.rb
CHANGED
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.
|
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:
|
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:
|
120
|
+
hash: 3532762536133801991
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
123
|
rubygems_version: 1.8.24
|