remote_cp 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/{README.md → README.rdoc} +8 -8
- data/lib/remote_cp/version.rb +1 -1
- data/lib/remote_cp.rb +7 -1
- metadata +5 -5
data/{README.md → README.rdoc}
RENAMED
@@ -1,18 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
= RemoteCp
|
2
|
+
|
3
|
+
== Description
|
4
4
|
RemoteCp is a command line tool intended to facilitate copying files accross the internet. You need to install the gem on both source and destination computers. Since it uses Amason S3, you need to create a S3 Bucket and configure the source and destination computer with the bucket keys.
|
5
|
-
|
5
|
+
== Installation
|
6
6
|
Install the gem
|
7
7
|
|
8
8
|
$ gem install remote_cp
|
9
9
|
|
10
|
-
Setup your remote cp by editing ~/.remote_cp
|
10
|
+
Setup your remote cp by editing ~/.remote_cp config file:
|
11
11
|
|
12
12
|
:access_key_id: MY_ACCESS_KEY
|
13
13
|
:secret_access_key: MY_SECRET
|
14
14
|
:bucket_name: MY_BUCKET_NAME
|
15
|
-
|
15
|
+
== Usage
|
16
16
|
To copy a file to the remote clipboard:
|
17
17
|
|
18
18
|
machineA: rt cp filename
|
@@ -22,7 +22,7 @@ The file can be pasted on another machine if remote_cp gem has been installed wi
|
|
22
22
|
You can also copy directories
|
23
23
|
|
24
24
|
machineA: rt cp dirname
|
25
|
-
To paste the
|
25
|
+
To paste the copied directory in the current directory
|
26
26
|
|
27
27
|
machineB: /home/tata>$ rt p
|
28
28
|
machineB: /home/tata>$ ls -d */
|
@@ -39,7 +39,7 @@ You can also dump the remote clipboard to the stdout.
|
|
39
39
|
drwxr-xr-x 2 martinos staff 68 25 Mar 23:08 a_dir
|
40
40
|
-rw-r--r-- 1 martinos staff 15 25 Mar 23:07 a_file.txt
|
41
41
|
drwxr-xr-x 65 martinos staff 2210 25 Mar 23:07 ..
|
42
|
-
|
42
|
+
== License
|
43
43
|
|
44
44
|
Released under the MIT License. See the LICENSE file for further details.
|
45
45
|
|
data/lib/remote_cp/version.rb
CHANGED
data/lib/remote_cp.rb
CHANGED
@@ -28,7 +28,13 @@ module RemoteCp
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def config
|
31
|
-
config_filename = File.join(ENV["HOME"], ".remote_cp
|
31
|
+
config_filename = File.join(ENV["HOME"], ".remote_cp")
|
32
|
+
old_filename = File.join(ENV["HOME"], ".remote_cp.yml")
|
33
|
+
|
34
|
+
if File.exist?(old_filename)
|
35
|
+
puts ".remote_cp.yml configuration file name is depricated. Renaming to .remote_cp"
|
36
|
+
File.rename(old_filename, config_filename)
|
37
|
+
end
|
32
38
|
|
33
39
|
@config ||= if File.exist?(config_filename)
|
34
40
|
conf = Hash.new {|key, val| raise "Missing key #{key} in config file: #{config_filename}"}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remote_cp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 12
|
10
|
+
version: 0.0.12
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Martin Chabot
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-05 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -89,7 +89,7 @@ files:
|
|
89
89
|
- Gemfile
|
90
90
|
- Gemfile.lock
|
91
91
|
- LICENSE
|
92
|
-
- README.
|
92
|
+
- README.rdoc
|
93
93
|
- Rakefile
|
94
94
|
- bin/rt
|
95
95
|
- lib/remote_cp.rb
|