production-sync 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Readme.md +12 -0
- data/lib/production-sync.rb +1 -1
- data/lib/production-sync/version.rb +1 -1
- metadata +4 -4
- data/Readme +0 -13
data/Readme.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Production Sync
|
2
|
+
|
3
|
+
A simple rsync wrapper allowing you to configure "sites" that can be rsync'd up to a remote server via SSH
|
4
|
+
|
5
|
+
### Sample Config Entry
|
6
|
+
|
7
|
+
live_server:
|
8
|
+
server: server.com
|
9
|
+
username: username
|
10
|
+
source: /Users/home_folder
|
11
|
+
destination: /home/user/remote_location
|
12
|
+
#ignore_file: .something_else
|
data/lib/production-sync.rb
CHANGED
@@ -52,7 +52,7 @@ module ProductionSync
|
|
52
52
|
|
53
53
|
#Define the command to run
|
54
54
|
def command
|
55
|
-
@command = "#{@rsync} -rv --delete --exclude '.git' --exclude '.svn' --exclude '.gitignore' --exclude '
|
55
|
+
@command = "#{@rsync} -rv --delete --exclude '.git' --exclude '.svn' --exclude '.gitignore' --exclude '#{@ignore_file}' --exclude-from #{@site['source']}/#{@ignore_file} #{File.expand_path(@site['source']) + "/"} #{@site['username']}@#{@site['server']}:#{@site['destination']}"
|
56
56
|
end
|
57
57
|
|
58
58
|
#Run the command
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 6
|
9
|
+
version: 0.1.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Bryan Shelton
|
@@ -31,7 +31,7 @@ files:
|
|
31
31
|
- lib/production-sync.rb
|
32
32
|
- lib/production-sync/read_config.rb
|
33
33
|
- lib/production-sync/version.rb
|
34
|
-
- Readme
|
34
|
+
- Readme.md
|
35
35
|
has_rdoc: true
|
36
36
|
homepage: http://github.com/bshelton229/production-sync
|
37
37
|
licenses: []
|
@@ -63,6 +63,6 @@ rubyforge_project:
|
|
63
63
|
rubygems_version: 1.3.7
|
64
64
|
signing_key:
|
65
65
|
specification_version: 3
|
66
|
-
summary:
|
66
|
+
summary: Rsync wrapper
|
67
67
|
test_files: []
|
68
68
|
|
data/Readme
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
Production Sync
|
2
|
-
---------------
|
3
|
-
|
4
|
-
A simple rsync wrapper allowing you to configure "sites" that can be rsync'd up to a remote server via SSH
|
5
|
-
|
6
|
-
Sample Config Entry
|
7
|
-
|
8
|
-
live_server:
|
9
|
-
server: server.com
|
10
|
-
username: username
|
11
|
-
source: /Users/home_folder
|
12
|
-
destination: /home/user/remote_location
|
13
|
-
#ignore_file: .something_else
|