cloud_backup 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b1ddec795b76861727222e47c8a0142683df3ed
4
- data.tar.gz: e7ae1367cce78dcdf79d14c1ae97f6568cbab49f
3
+ metadata.gz: dba0c7f461d2aae4b37c0e42f2b2db21f912d4f5
4
+ data.tar.gz: 68e912eca56fc4611b9832a1cd4c7944b85c8dc0
5
5
  SHA512:
6
- metadata.gz: 7d76d796542c55caa5106e7d037d3022167760f49bfb8add041a26e9c0b389c470e47a7b42fe04143c780b3edb9995f9c3b7b1dee4044c012fd0201ecdf3b8c0
7
- data.tar.gz: d640d936a3bd3585500fa85e5beaf31a735508025fb7294270c128db09cb3d81d72e8a268ae15cf6e9f5210c5e295a6d1ae457b181a54973ca79144808797b08
6
+ metadata.gz: c38df4f723d7d970e1e38078ad5d6b8a9dade60c39e86307ca3f98fa231737008b3277e4aab7ab60886cef3b51d835bb7f39cfbc54ff3e51d6a9019d981ab351
7
+ data.tar.gz: 36ca656f59be3219e202f9b4e636d6802ef0b4216311efc30660052d60b7b3588d38fed951c4a0fafbbe4cc2cd4b2cf6c4da5a1230d80e3248eff3f29c48afcf
data/bin/cloud_backup ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require '../lib/cloud_backup/cli'
4
+
5
+ Cli.new
6
+
@@ -1,6 +1,6 @@
1
1
  require_relative 'dumper'
2
2
 
3
- class CLI
3
+ class Cli
4
4
  def initialize
5
5
  @dumper = Dumper.new
6
6
  puts 'What type of dump do you want?'
@@ -4,7 +4,8 @@ require 'yaml'
4
4
  class Dumper
5
5
 
6
6
  def initialize
7
- settings = YAML.load_file('settings.yml')
7
+ settings_path = File.join(File.dirname(__FILE__), '../settings.yml')
8
+ settings = YAML.load_file(settings_path)
8
9
  @app_key = settings['dropbox']['app_key']
9
10
  @app_secret = settings['dropbox']['app_secret']
10
11
  @db_name = settings['database']['db_name']
@@ -1,3 +1,3 @@
1
1
  module CloudBackup
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serdar Dogruyol
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-30 00:00:00.000000000 Z
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dropbox-sdk
@@ -69,7 +69,8 @@ dependencies:
69
69
  description: Backup files and database dumps to Cloud.
70
70
  email:
71
71
  - dogruyolserdar@gmail.com
72
- executables: []
72
+ executables:
73
+ - cloud_backup
73
74
  extensions: []
74
75
  extra_rdoc_files: []
75
76
  files:
@@ -78,8 +79,8 @@ files:
78
79
  - LICENSE.txt
79
80
  - README.md
80
81
  - Rakefile
82
+ - bin/cloud_backup
81
83
  - cloud_backup.gemspec
82
- - lib/cloud_backup.rb
83
84
  - lib/cloud_backup/cli.rb
84
85
  - lib/cloud_backup/dumper.rb
85
86
  - lib/cloud_backup/version.rb
data/lib/cloud_backup.rb DELETED
@@ -1,6 +0,0 @@
1
- require "cloud_backup/version"
2
- require "cloud_backup/cli"
3
-
4
- module CloudBackup
5
- CLI.new
6
- end