rubiojr-iorb 0.5.1 → 0.5.2
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/iorb.gemspec +1 -1
- data/lib/iorb.rb +1 -1
- data/lib/iorb/commands/send_to_drop.rb +1 -1
- data/lib/iorb/commands/update.rb +6 -0
- metadata +1 -1
data/iorb.gemspec
CHANGED
data/lib/iorb.rb
CHANGED
data/lib/iorb/commands/update.rb
CHANGED
@@ -8,8 +8,14 @@ command :update do |c|
|
|
8
8
|
c.option '--admin-password PASSWORD', String, 'Admin password to manage this drop (defaut: none)'
|
9
9
|
c.option '--password PASSWORD', String, 'Password to access this drop (defaut: none)'
|
10
10
|
c.option '--premium-code CODE', String, 'Premium code to apply to the drop (defaut: none)'
|
11
|
+
c.syntax = 'Usage: iorb update <drop_name> [options]'
|
11
12
|
c.when_called do |args, drop_options|
|
12
13
|
drop_name = args.first
|
14
|
+
if drop_name.nil?
|
15
|
+
$stderr.puts 'Invalid drop name'
|
16
|
+
$stderr.puts c.syntax
|
17
|
+
abort
|
18
|
+
end
|
13
19
|
begin
|
14
20
|
details = IORB::DropManager.find(drop_name)
|
15
21
|
drop = Drop.find(drop_name, details.admin_token )
|