rosie 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +27 -41
  2. data/lib/rosie/version.rb +1 -1
  3. metadata +4 -4
data/README.md CHANGED
@@ -16,43 +16,32 @@ The gem provides two rake tasks which will backup or restore a MySQL database al
16
16
 
17
17
  Add rosie to your Gemfile:
18
18
 
19
- <pre>
20
- gem 'rosie'
21
- </pre>
19
+ gem 'rosie'
22
20
 
23
21
  Use bundler to install it:
24
22
 
25
- <pre>
26
- bundle install
27
- </pre>
23
+ bundle install
28
24
 
29
25
  ### Rails 2.3.x
30
26
  If you're using Rails 2, you'll need to add a couple lines to your `Rakefile`.
31
27
  After all the requires, add the following:
32
-
33
- <code><pre>
34
-
35
- require 'rosie'
36
-
37
- Dir["#{Gem.searcher.find('rosie').full_gem_path}/lib/tasks/**/*.rake"].each { |ext| load ext }
38
-
39
- </pre></code>
40
-
28
+
29
+ require 'rosie'
30
+
31
+ Dir["#{Gem.searcher.find('rosie').full_gem_path}/lib/tasks/**/*.rake"].each { |ext| load ext }
32
+
41
33
  ## Configuration
42
34
 
43
35
  Configuration values can be set by placing a rosie.yml file in your config directory. Default keys and values are as follows:
44
36
 
45
- <pre>
46
- # sample rosie.yml
47
- #
48
- backup_dir:backups
49
- assets_dirs:
50
- - public/system
51
- mysql_bin_dir:
52
-
53
- prefix:
54
- - my_app
55
- </pre>
37
+ # sample rosie.yml
38
+ #
39
+ backup_dir:backups
40
+ assets_dirs:
41
+ - public/system
42
+ mysql_bin_dir:
43
+
44
+ prefix: my_app
56
45
 
57
46
  * `backup_dir`: This specifies the directory where the backup files will be stored. It should be specified relative to your Rails root. This setting would give you `#{Rails.root}/backups`.
58
47
  * `assets_dirs`: This specifies the directorys which hold system assets you want to be added to the backup file. All entries should be specified relative to your Rails root.
@@ -72,23 +61,22 @@ After installing the gem as described above, add the rosie.yml file to your #{Ra
72
61
  ### Task rosie:config
73
62
 
74
63
  `rosie:config` will show you what it's derived from your config.
75
- <code><pre>
76
- % rake rosie:config
77
- Rosie Config: read from /projects/boilerplate/config/rosie.yml
78
- mysql: mysql
79
- mysqldump: mysqldump
80
- backup dir: /projects/boilerplate/my_backups
81
- assets dirs: public/my_assets, public/my_other_assets
82
- prefix: my_backup_file_prefix
83
- </pre></code>
64
+
65
+ % rake rosie:config
66
+ Rosie Config: read from /projects/boilerplate/config/rosie.yml
67
+ mysql: mysql
68
+ mysqldump: mysqldump
69
+ backup dir: /projects/boilerplate/my_backups
70
+ assets dirs: public/my_assets, public/my_other_assets
71
+ prefix: my_backup_file_prefix
84
72
 
85
73
 
86
74
  ### Task rosie:backup
87
75
 
88
76
  If you've checked out the configuration, and things look good, you can run a backup like this:
89
- <pre>
90
- % rake rosie:backup
91
- </pre>
77
+
78
+ % rake rosie:backup
79
+
92
80
  You'll find a new file under your `backups` dir (or whatever you've specified as the backup dir in your config).
93
81
 
94
82
  ### Task rosie:restore
@@ -96,9 +84,7 @@ You'll find a new file under your `backups` dir (or whatever you've specified as
96
84
  To restore, run `rosie:restore`. You'll need to add the commandline parameter `datafile` to tell rosie which file you are trying to restore from.
97
85
 
98
86
  For example:
99
- <pre>
100
- % rake rosie:restore datafile=~/Downloads/20110817180817.tgz
101
- </pre>
87
+ % rake rosie:restore datafile=~/Downloads/20110817180817.tgz
102
88
 
103
89
  Rosie does not run migrations, so if you're pulling data from a database whose schema may be out of date with the system on which you're restoring, you probably will want to run a db:migrate after the restore.
104
90
 
@@ -1,3 +1,3 @@
1
1
  module Rosie
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rosie
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jon Rogers
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2012-01-15 00:00:00 Z
14
+ date: 2012-01-20 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec
@@ -78,9 +78,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  requirements: []
79
79
 
80
80
  rubyforge_project: rosie
81
- rubygems_version: 1.8.5
81
+ rubygems_version: 1.8.8
82
82
  signing_key:
83
83
  specification_version: 3
84
- summary: rosie-0.0.6
84
+ summary: rosie-0.0.7
85
85
  test_files: []
86
86