menu-cli 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 152287c48de805e95789c0815aff76ac5b80743b
4
- data.tar.gz: fb285d2c24de6374012a5774ac153e460a286a12
3
+ metadata.gz: 8e48681dfd5a0a07bec9fbd094270b0fe9a2cf3c
4
+ data.tar.gz: ebacda6d30537f925eaa5bb49de40b66800f6866
5
5
  SHA512:
6
- metadata.gz: 2162538851fed737da396d9c80c36cdd3f0d03e270e365e140cceae50acf0da9dd17f164f9c501181ab76043e7497bb1d9daa0cc665eb22e13dc4f764a31c39a
7
- data.tar.gz: 134f756cad85e7503b3c6f66cdda6d7119cbd201877fe8300584d34ba6573ebc7fc86ade2d2c47a94b82887a256f498f58a5cf2baa7efa476d37ee46e48e7672
6
+ metadata.gz: 6fee97bb7d388704adcf932bb07e7ddb0121c0c06fb4ee24f09b5a26d0aa8cebd36185387e626e2fe2d748f6c0acfd63dc87fe04afdac00f07d51ab310993ac7
7
+ data.tar.gz: 4388708385f4134e054f821a1bdea62bcd987771724abbab92c39d2e6a5df67d1618d2828abfce2393e02ac532d8a5394e7fff4002c4509cf23e04b8ac64c4de
data/bin/menu CHANGED
@@ -15,12 +15,12 @@ options.bucket = ENV['MENU_BUCKET']
15
15
  optparse = OptionParser.new do|opts|
16
16
  opts.banner = "Usage: menu [options] <payload>"
17
17
 
18
- opts.on( '-c', '--component [NAME]', [:waitress, :firmware, :bartender], 'Select component') do |app|
18
+ opts.on( '-c', '--component [NAME]', 'Select component') do |app|
19
19
  options.component = app
20
20
  end
21
21
 
22
22
  opts.on( '-b', '--beta', 'Mark beta') do |flag|
23
- options.beta = true
23
+ options.beta = true
24
24
  end
25
25
 
26
26
  opts.on('-v', '--verbose', 'Verbose') do |v|
@@ -5,7 +5,11 @@ module Menu
5
5
  def self.do component
6
6
  raise "Missing component" unless component
7
7
  response = @@con.get("/#{component}.json")
8
- Releases.from_array response.body['releases']
8
+ if response.success?
9
+ Releases.from_array response.body['releases']
10
+ else
11
+ Releases.new
12
+ end
9
13
  end
10
14
 
11
15
  def self.from_array arr
@@ -1,4 +1,3 @@
1
- require 'pry'
2
1
  module Menu
3
2
  class Runner
4
3
  def initialize options
@@ -1,3 +1,3 @@
1
1
  module Menu
2
- VERSION = "0.2"
2
+ VERSION = "0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: menu-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kurt Nelson