rubiojr-iorb 0.2.20090421102937 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/README.txt +9 -4
- data/bin/iorb +11 -2
- data/iorb.gemspec +1 -1
- data/lib/iorb.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -1,20 +1,25 @@
|
|
1
1
|
= iorb
|
2
2
|
|
3
|
-
* http://github.com/
|
3
|
+
* http://rubiojr.github.com/
|
4
4
|
|
5
5
|
== DESCRIPTION:
|
6
6
|
|
7
7
|
http://drop.io CLI interface
|
8
8
|
|
9
|
+
You will need a drop.io API key. Get it at http://api.drop.io
|
10
|
+
|
9
11
|
== FEATURES/PROBLEMS:
|
10
12
|
|
11
13
|
* Many things not yet implemented
|
12
14
|
|
13
15
|
== SYNOPSIS:
|
14
16
|
|
15
|
-
iorb --
|
16
|
-
|
17
|
-
iorb
|
17
|
+
iorb --create [drop_name]
|
18
|
+
iorb --drop-name <drop_name> --add-files file1 file2 ...
|
19
|
+
iorb --list <drop_name>
|
20
|
+
iorb --destroy <drop_name>
|
21
|
+
...
|
22
|
+
iorb -h
|
18
23
|
|
19
24
|
== REQUIREMENTS:
|
20
25
|
|
data/bin/iorb
CHANGED
@@ -154,10 +154,19 @@ elsif Choice.choices.add_files
|
|
154
154
|
drop_name = Choice.choices.drop_name
|
155
155
|
if drop_name
|
156
156
|
drop_details = IORB::DropManager.find(drop_name)
|
157
|
-
if drop_details.nil?
|
158
|
-
$stderr.puts "Drop #{drop_name} not found in config."
|
157
|
+
if drop_details.nil? or drop_details['admin-token'].nil?
|
158
|
+
$stderr.puts "Drop #{drop_name} not found in config or admin-token invalid."
|
159
159
|
exit 1
|
160
160
|
end
|
161
|
+
drop = Drop.find(drop_name, drop_details['admin-token'])
|
162
|
+
Choice.choices.add_files.each do |f|
|
163
|
+
if File.exist?(f)
|
164
|
+
drop.add_file(f)
|
165
|
+
puts "File #{f} added."
|
166
|
+
else
|
167
|
+
$stderr.puts "File #{f} not found, skipping."
|
168
|
+
end
|
169
|
+
end
|
161
170
|
else
|
162
171
|
options = {
|
163
172
|
:expiration_length => Choice.choices.expiration_length,
|
data/iorb.gemspec
CHANGED
data/lib/iorb.rb
CHANGED