MrMurano 1.5.3 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb66958edb807052d6d7e8ea8673cf1137dea0f7
4
- data.tar.gz: 84d50836cafec96fb0bd3c6cc92ecd2c78b92a61
3
+ metadata.gz: 19ed883f1122316d6a5fef1d112d1493f2db527c
4
+ data.tar.gz: 296deaeb1328e5da115bcfc43b65d53a068e8eb1
5
5
  SHA512:
6
- metadata.gz: bafcf0de9d2466d5e6262217317ee7f3824baf012645ed5136388a99e34cd91bf87b73751435c78ef62acbcd656723a7c28988ce23b98dd7e566c0355429f42f
7
- data.tar.gz: d09ef03f75a47cb230949635d1562e9ce2e076a2acc617cfd4281ff486146884ea79ad89b63582bca687314623848dc41316be2446e4deb8b69ab338084674a1
6
+ metadata.gz: 91a9311aa80db4f70058059aad657d78371ede8e77ae7b5cbb89c777a31e96001232e28012efbd4f107bc2daa8d64fbb3c55a18ed571677dc7d28d2e472f97f4
7
+ data.tar.gz: d16cb066bc361d0b8f176ff8da3e64406b0e36508c96185ce158610840353b6991c92e978797563f01eefee987266d53e2a22fba7872d14677c6cb2f491dba69
@@ -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 :
@@ -1,4 +1,4 @@
1
1
  module MrMurano
2
- VERSION = '1.5.3'.freeze
2
+ VERSION = '1.5.4'.freeze
3
3
  end
4
4
 
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.3
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-29 00:00:00.000000000 Z
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