blavosync 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Blavosync.gemspec +4 -4
  2. data/README.rdoc +70 -0
  3. data/VERSION +1 -1
  4. metadata +4 -4
  5. data/README.markdown +0 -97
data/Blavosync.gemspec CHANGED
@@ -5,23 +5,23 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{blavosync}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jayronc"]
12
- s.date = %q{2009-12-29}
12
+ s.date = %q{2009-12-30}
13
13
  s.description = %q{Sync a remote db and rsync content to your development environment. Useful for small teams and developers who are not able to do this manually.}
14
14
  s.email = %q{jerrodblavos@mac.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.markdown"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  "Blavosync.gemspec",
21
21
  "History.txt",
22
22
  "LICENSE",
23
23
  "Manifest.txt",
24
- "README.markdown",
24
+ "README.rdoc",
25
25
  "Rakefile",
26
26
  "VERSION",
27
27
  "lib/blavosync.rb",
data/README.rdoc ADDED
@@ -0,0 +1,70 @@
1
+ = BlavoSync
2
+
3
+ == DEPENDENCIES
4
+
5
+ * Capistrano2 (http://github.com/jamis/capistrano)
6
+
7
+ == Requirements
8
+
9
+ * A reason to have your production stuff on your development machine.
10
+ * A production server running mysql and sshd.
11
+ * A valid $RAILS_ROOT/config/database.yml file with entries for both production and development.
12
+ * The latest capistrano2 and a valid $RAILS_ROOT/config/deploy.rb file with either a :domain or :rsync domain entry.
13
+ * The blavosync rubygem, available at http://gemcutter.org (sudo gem install blavosync).
14
+ * Hopefully you already have a nice little app running somewhere that has some decent data and assets. In your $RAILS_ROOT/config/deploy.rb file add this line to the top:
15
+
16
+ require "blavosync/recipes"
17
+
18
+ In addition, ensure that you have an entry either for :domain or :rsync_domain like so:
19
+
20
+ set :domain, "my.awesomedomain.com"
21
+
22
+ or if you are using some custom deployment location:
23
+
24
+ set :rsync_domain, "my.awesomedomain.com"
25
+
26
+ This covers the basic requirements, on to usage. As long as your $RAILS_ROOT/config/deploy.rb file is working, the only action you need to take is to run the following on your local machine.
27
+
28
+ cap local:sync
29
+
30
+ This will dump the production database and load it into your local mysql database, defined in your $RAILS_ROOT/config/database.yml, and then rsync anything in your $RAILS_ROOT/shared/system directory on production into your $RAILS_ROOT/tmp directory in a new system directory. Once this is done, the $RAILS_ROOT/tmp/system directory will be symlinked into $RAILS_ROOT/public/system.
31
+
32
+ There are some considerations you should take before using this tool, such as do you have enough disk space or bandwidth to pull down all the assets. You may already have a $RAILS_ROOT/public/system directory full of assets, in which case if you want to keep those you should back them up somewhere and delete the system directory, otherwise the symlink may not work.
33
+
34
+ If you are on OSX you may need to enable FollowSymLinks in your virtualhost entry for these assets to be served by apache.
35
+
36
+ == USAGE
37
+
38
+ adds the following tasks to projects using capistrano
39
+
40
+ === cap local:sync
41
+
42
+ Wrapper for local:sync_db and local:sync\_content
43
+ $> cap local:sync
44
+
45
+ === cap local:rsync
46
+
47
+ Wrapper for local:rsync_content and local:rsync\_restore\_content
48
+ $> cap local:sync_content
49
+
50
+ === cap local:sync_db
51
+
52
+ Wrapper for local:backup_db and local:restore\_db.
53
+ $> cap local:sync_db
54
+
55
+
56
+ For subcommands try cap -T local
57
+
58
+ ==== Note on Patches/Pull Requests
59
+
60
+ * Fork the project.
61
+ * Make your feature addition or bug fix.
62
+ * Add tests for it. This is important so I don't break it in a
63
+ future version unintentionally.
64
+ * Commit, do not mess with rakefile, version, or history.
65
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
66
+ * Send me a pull request. Bonus points for topic branches.
67
+
68
+ ===== Copyright
69
+
70
+ Copyright (c) 2009 jayronc. See LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blavosync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jayronc
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-29 00:00:00 -05:00
12
+ date: 2009-12-30 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -21,13 +21,13 @@ extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
23
  - LICENSE
24
- - README.markdown
24
+ - README.rdoc
25
25
  files:
26
26
  - Blavosync.gemspec
27
27
  - History.txt
28
28
  - LICENSE
29
29
  - Manifest.txt
30
- - README.markdown
30
+ - README.rdoc
31
31
  - Rakefile
32
32
  - VERSION
33
33
  - lib/blavosync.rb
data/README.markdown DELETED
@@ -1,97 +0,0 @@
1
- == blavosync
2
-
3
- REQUIREMENTS:
4
-
5
- a valid database.yml file with access to both production and development data
6
- rsync binaries locally and on server, or gzip and tar
7
- a config/deploy.rb script and ssh access to your production box
8
-
9
- INSTALLATION:
10
- Add this line to your config/deploy.rb file
11
-
12
- require 'blavosync/recipes'
13
-
14
- USAGE:
15
- adds the following tasks to projects using capistrano
16
-
17
- ------------------------------------------------------------
18
- cap local:backup_content
19
- ------------------------------------------------------------
20
- Downloads a tarball of shared content (identified by the :shared_content and
21
- :content _ directories properties) from a deployable environment (RAILS_ENV) to
22
- the local filesystem.
23
-
24
- ------------------------------------------------------------
25
- cap local:backup _ db
26
- ------------------------------------------------------------
27
- Backs up deployable environment's database and copies it to
28
- the local machine.
29
-
30
- ------------------------------------------------------------
31
- cap local:force _ backup _ content
32
- ------------------------------------------------------------
33
- Regenerate files.
34
-
35
- ------------------------------------------------------------
36
- cap local:force _ backup _ db
37
- ------------------------------------------------------------
38
- Regenerate files.
39
-
40
- ------------------------------------------------------------
41
- cap local:restore _ content
42
- ------------------------------------------------------------
43
- Restores the backed up content (env var FROM specifies which environment
44
- was backed up, defaults to RAILS_ENV) to the local development environment app
45
-
46
- ------------------------------------------------------------
47
- cap local:restore _ db
48
- ------------------------------------------------------------
49
- Untars the backup file downloaded from local:backup_db and imports
50
- (via mysql command line tool) it back into the development database.
51
-
52
- ------------------------------------------------------------
53
- cap local:resync _ db
54
- ------------------------------------------------------------
55
- Ensure that a fresh remote data dump is retrieved before syncing to the local
56
- environment
57
-
58
- ------------------------------------------------------------
59
- cap local:sync
60
- ------------------------------------------------------------
61
- Wrapper for local:sync _ db and local:sync _ content
62
- $> cap local:sync
63
-
64
- ------------------------------------------------------------
65
- cap local:sync_content
66
- ------------------------------------------------------------
67
- Wrapper for local:backup _ content and local:restore _ content
68
- $> cap local:sync_content
69
-
70
- ------------------------------------------------------------
71
- cap local:sync_db
72
- ------------------------------------------------------------
73
- Wrapper for local:backup _ db and local:restore _ db.
74
- $> cap local:sync _ db
75
-
76
- ------------------------------------------------------------
77
- cap local:sync_init
78
- ------------------------------------------------------------
79
- Wrapper for local:force _ backup _ db, local:force _ backup _ content, and the
80
- local:sync to get
81
- a completely fresh set of data from the server
82
- $> cap local:sync
83
-
84
-
85
- == Note on Patches/Pull Requests
86
-
87
- * Fork the project.
88
- * Make your feature addition or bug fix.
89
- * Add tests for it. This is important so I don't break it in a
90
- future version unintentionally.
91
- * Commit, do not mess with rakefile, version, or history.
92
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
93
- * Send me a pull request. Bonus points for topic branches.
94
-
95
- == Copyright
96
-
97
- Copyright (c) 2009 jayronc. See LICENSE for details.