slapshot 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/slapshot +6 -2
- data/lib/slapshot/version.rb +1 -1
- metadata +1 -1
data/bin/slapshot
CHANGED
@@ -16,7 +16,7 @@ desc 'Your Appshot instance'
|
|
16
16
|
flag [:i,:instance]
|
17
17
|
|
18
18
|
desc 'Search your instance of Appshot'
|
19
|
-
arg_name '
|
19
|
+
arg_name 'query surrounded by single quotes'
|
20
20
|
command :search do |c|
|
21
21
|
|
22
22
|
c.desc 'Get all results'
|
@@ -37,7 +37,7 @@ command :search do |c|
|
|
37
37
|
c.action do |global_options,options,args|
|
38
38
|
|
39
39
|
if args.length != 1
|
40
|
-
raise
|
40
|
+
raise 'The search command takes exactly one argument: the query surrounded by single quotes'
|
41
41
|
end
|
42
42
|
|
43
43
|
count = options[:c]
|
@@ -119,6 +119,10 @@ pre do |global,command,options,args|
|
|
119
119
|
if command.names != 'login' and command.names != 'logout'
|
120
120
|
|
121
121
|
instance = global[:i] || ENV['APPSHOT_INSTANCE']
|
122
|
+
|
123
|
+
if !instance
|
124
|
+
raise "You need to specific an instance (-i) to execute the #{command.names} command"
|
125
|
+
end
|
122
126
|
|
123
127
|
@sc = Appshot.new url, get_token, instance
|
124
128
|
|
data/lib/slapshot/version.rb
CHANGED