backup 3.0.18 → 3.0.19

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  .DS_Store
2
- *.gem
2
+ *.gem
3
+ .rvmrc
@@ -1,7 +1,6 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- Platform (0.4.0)
5
4
  addressable (2.2.6)
6
5
  builder (3.0.0)
7
6
  crack (0.1.8)
@@ -60,11 +59,7 @@ GEM
60
59
  net-ssh (2.1.4)
61
60
  nokogiri (1.5.0)
62
61
  oauth (0.4.5)
63
- open4 (1.1.0)
64
62
  polyglot (0.3.2)
65
- popen4 (0.1.2)
66
- Platform (>= 0.4.0)
67
- open4 (>= 0.4.0)
68
63
  rack (1.3.2)
69
64
  rb-fsevent (0.4.0)
70
65
  rb-inotify (0.8.5)
@@ -112,7 +107,6 @@ DEPENDENCIES
112
107
  net-scp (~> 1.0.4)
113
108
  net-sftp (~> 2.0.5)
114
109
  net-ssh (~> 2.1.4)
115
- popen4 (~> 0.1.2)
116
110
  rb-fsevent
117
111
  rb-inotify
118
112
  rspec
data/README.md CHANGED
@@ -4,6 +4,8 @@ Backup 3
4
4
  Backup is a RubyGem, written for Linux and Mac OSX, that allows you to easily perform backup operations on both your remote, as well as your local environment. It provides you with an elegant DSL in Ruby for modeling (configuring) your backups. Backup has built-in support for various databases, storage protocols/services, syncers, compressors, encryptors and notifiers which you can mix and match. It was built with modularity, extensibility and simplicity in mind.
5
5
 
6
6
  [![Build Status](https://secure.travis-ci.org/meskyanichi/backup.png)](http://travis-ci.org/meskyanichi/backup)
7
+ [![Still Maintained](http://stillmaintained.com/meskyanichi/backup.png)](http://stillmaintained.com/meskyanichi/backup)
8
+
7
9
 
8
10
  Author
9
11
  ------
@@ -13,6 +15,14 @@ Author
13
15
  Drop me a message for any questions, suggestions, requests, bugs or submit them to the [issue log](https://github.com/meskyanichi/backup/issues).
14
16
 
15
17
 
18
+ Please Donate!
19
+ --------------
20
+
21
+ Please [DONATE](http://pledgie.com/campaigns/16065) to the Backup project. Backup was a huge amount of work and every donation received is encouraging and supports Backup's continued development! Thanks!
22
+
23
+ [![Donate to Backup](http://pledgie.com/campaigns/16065.png)](http://pledgie.com/campaigns/16065)
24
+
25
+
16
26
  Installation
17
27
  ------------
18
28
 
@@ -22,6 +32,7 @@ To get the latest stable version
22
32
 
23
33
  You can view the list of released versions over at [RubyGems.org (Backup)](https://rubygems.org/gems/backup/versions)
24
34
 
35
+
25
36
  Getting Started
26
37
  ---------------
27
38
 
@@ -8,7 +8,7 @@ module Backup
8
8
 
9
9
  ##
10
10
  # Rackspace Cloud Files Credentials
11
- attr_accessor :api_key, :username
11
+ attr_accessor :api_key, :username, :auth_url
12
12
 
13
13
  ##
14
14
  # Rackspace Cloud Files container name and path
@@ -266,6 +266,8 @@ module Backup
266
266
  Logger.normal "=" * 75 + "\nException that got raised:\n#{exception.class} - #{exception} \n" + "=" * 75 + "\n" + exception.backtrace.join("\n")
267
267
  Logger.normal "=" * 75 + "\n\nYou are running Backup version \"#{Backup::Version.current}\" and Ruby version \"#{RUBY_VERSION} (patchlevel #{RUBY_PATCHLEVEL})\" on platform \"#{RUBY_PLATFORM}\".\n"
268
268
  Logger.normal "If you've setup a \"Notification\" in your configuration file, the above error will have been sent."
269
+ #Notifies the shell an exception occured.
270
+ exit 1
269
271
  end
270
272
 
271
273
  end
@@ -10,7 +10,7 @@ module Backup
10
10
 
11
11
  ##
12
12
  # Rackspace Cloud Files Credentials
13
- attr_accessor :username, :api_key
13
+ attr_accessor :username, :api_key, :auth_url
14
14
 
15
15
  ##
16
16
  # Rackspace Cloud Files container name and path
@@ -61,7 +61,8 @@ module Backup
61
61
  Fog::Storage.new(
62
62
  :provider => provider,
63
63
  :rackspace_username => username,
64
- :rackspace_api_key => api_key
64
+ :rackspace_api_key => api_key,
65
+ :rackspace_auth_url => auth_url
65
66
  )
66
67
  end
67
68
 
@@ -13,7 +13,7 @@ module Backup
13
13
  # Defines the minor version
14
14
  # PATCH:
15
15
  # Defines the patch version
16
- MAJOR, MINOR, PATCH = 3, 0, 18
16
+ MAJOR, MINOR, PATCH = 3, 0, 19
17
17
 
18
18
  ##
19
19
  # Returns the major version ( big release based off of multiple minor releases )
@@ -7,4 +7,5 @@
7
7
  cf.container = 'my_container'
8
8
  cf.path = '/path/to/my/backups'
9
9
  cf.keep = 5
10
- end
10
+ cf.auth_url = 'lon.auth.api.rackspacecloud.com'
11
+ end
@@ -9,6 +9,7 @@ describe Backup::Configuration::Storage::CloudFiles do
9
9
  cf.api_key = 'my_api_key'
10
10
  cf.container = 'my_container'
11
11
  cf.path = 'my_backups'
12
+ cf.auth_url = 'lon.auth.api.rackspacecloud.com'
12
13
  end
13
14
  end
14
15
 
@@ -18,6 +19,7 @@ describe Backup::Configuration::Storage::CloudFiles do
18
19
  cf.api_key.should == 'my_api_key'
19
20
  cf.container.should == 'my_container'
20
21
  cf.path.should == 'my_backups'
22
+ cf.auth_url.should == 'lon.auth.api.rackspacecloud.com'
21
23
  end
22
24
 
23
25
  describe '#clear_defaults!' do
@@ -29,6 +31,7 @@ describe Backup::Configuration::Storage::CloudFiles do
29
31
  cf.api_key.should == nil
30
32
  cf.container.should == nil
31
33
  cf.path.should == nil
34
+ cf.auth_url.should == nil
32
35
  end
33
36
  end
34
37
  end
@@ -13,6 +13,7 @@ RSpec.configure do |config|
13
13
  [:message, :error, :warn, :normal, :silent].each do |message_type|
14
14
  Backup::Logger.stubs(message_type)
15
15
  end
16
+ Backup::Model.extension = 'tar'
16
17
  end
17
18
  end
18
19
 
@@ -11,6 +11,7 @@ describe Backup::Storage::CloudFiles do
11
11
  cf.container = 'my_container'
12
12
  cf.path = 'backups'
13
13
  cf.keep = 20
14
+ cf.auth_url = 'lon.auth.api.rackspacecloud.com'
14
15
  end
15
16
  end
16
17
 
@@ -24,6 +25,7 @@ describe Backup::Storage::CloudFiles do
24
25
  cf.container.should == 'my_container'
25
26
  cf.path.should == 'backups'
26
27
  cf.keep.should == 20
28
+ cf.auth_url.should == 'lon.auth.api.rackspacecloud.com'
27
29
  end
28
30
 
29
31
  it 'should use the defaults if a particular attribute has not been defined' do
@@ -48,7 +50,8 @@ describe Backup::Storage::CloudFiles do
48
50
  Fog::Storage.expects(:new).with({
49
51
  :provider => 'Rackspace',
50
52
  :rackspace_username => 'my_username',
51
- :rackspace_api_key => 'my_api_key'
53
+ :rackspace_api_key => 'my_api_key',
54
+ :rackspace_auth_url => 'lon.auth.api.rackspacecloud.com'
52
55
  })
53
56
 
54
57
  cf.send(:connection)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.18
4
+ version: 3.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-13 00:00:00.000000000 Z
12
+ date: 2011-10-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70250452788680 !ruby/object:Gem::Requirement
16
+ requirement: &70185029728160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.14.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70250452788680
24
+ version_requirements: *70185029728160
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: popen4
27
- requirement: &70250452785200 !ruby/object:Gem::Requirement
27
+ requirement: &70185029726640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 0.1.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70250452785200
35
+ version_requirements: *70185029726640
36
36
  description:
37
37
  email: meskyanichi@gmail.com
38
38
  executables: