slapshot 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/slapshot +6 -2
  2. data/lib/slapshot/version.rb +1 -1
  3. 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 'Pass in the query'
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 "The search command takes exactly one argument: the query"
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
 
@@ -1,3 +1,3 @@
1
1
  module Slapshot
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slapshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: