MrMurano 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/MrMurano/commands.rb +1 -0
- data/lib/MrMurano/commands/productEnable.rb +30 -0
- data/lib/MrMurano/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19ed883f1122316d6a5fef1d112d1493f2db527c
|
4
|
+
data.tar.gz: 296deaeb1328e5da115bcfc43b65d53a068e8eb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91a9311aa80db4f70058059aad657d78371ede8e77ae7b5cbb89c777a31e96001232e28012efbd4f107bc2daa8d64fbb3c55a18ed571677dc7d28d2e472f97f4
|
7
|
+
data.tar.gz: d16cb066bc361d0b8f176ff8da3e64406b0e36508c96185ce158610840353b6991c92e978797563f01eefee987266d53e2a22fba7872d14677c6cb2f491dba69
|
data/lib/MrMurano/commands.rb
CHANGED
@@ -8,6 +8,7 @@ require 'MrMurano/commands/domain'
|
|
8
8
|
require 'MrMurano/commands/exportImport'
|
9
9
|
require 'MrMurano/commands/keystore'
|
10
10
|
require 'MrMurano/commands/logs'
|
11
|
+
require 'MrMurano/commands/productEnable'
|
11
12
|
require 'MrMurano/commands/productSpec'
|
12
13
|
require 'MrMurano/commands/productWrite'
|
13
14
|
require 'MrMurano/commands/status'
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'MrMurano/Product'
|
2
|
+
|
3
|
+
command 'product enable' do |c|
|
4
|
+
c.syntax = %{mr product enable [<sn>|--file <sns>]}
|
5
|
+
c.summary = %{Enable a serial number; Creates device in Murano}
|
6
|
+
c.description = %{Enables serial numbers, creating the digial shadow in Murano.
|
7
|
+
|
8
|
+
NOTE: This opens the 24 hour activation window. If the device does not make
|
9
|
+
the activation call within this time, it will need to be enabled again.
|
10
|
+
}
|
11
|
+
c.option '-f', '--file FILE', %{A file of serial numbers, one per line}
|
12
|
+
|
13
|
+
c.action do |args,options|
|
14
|
+
prd = MrMurano::Product.new
|
15
|
+
if options.file then
|
16
|
+
File.open(options.file) do |io|
|
17
|
+
io.each_line do |line|
|
18
|
+
line.strip!
|
19
|
+
prd.enable(line) unless line.empty?
|
20
|
+
end
|
21
|
+
end
|
22
|
+
elsif args.count > 0 then
|
23
|
+
prd.enable(args[0])
|
24
|
+
else
|
25
|
+
say_error "Missing a serial number to enable"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
# vim: set ai et sw=2 ts=2 :
|
data/lib/MrMurano/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: MrMurano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Conrad Tadpol Tilstra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|
@@ -217,6 +217,7 @@ files:
|
|
217
217
|
- lib/MrMurano/commands/exportImport.rb
|
218
218
|
- lib/MrMurano/commands/keystore.rb
|
219
219
|
- lib/MrMurano/commands/logs.rb
|
220
|
+
- lib/MrMurano/commands/productEnable.rb
|
220
221
|
- lib/MrMurano/commands/productSpec.rb
|
221
222
|
- lib/MrMurano/commands/productWrite.rb
|
222
223
|
- lib/MrMurano/commands/status.rb
|