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 +4 -4
- data/bin/menu +2 -2
- data/lib/menu/releases.rb +5 -1
- data/lib/menu/runner.rb +0 -1
- data/lib/menu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e48681dfd5a0a07bec9fbd094270b0fe9a2cf3c
|
4
|
+
data.tar.gz: ebacda6d30537f925eaa5bb49de40b66800f6866
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]',
|
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|
|
data/lib/menu/releases.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/menu/runner.rb
CHANGED
data/lib/menu/version.rb
CHANGED