apiotics 0.2.23 → 0.2.24

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: dd054f3a76f7404d8e562f258fcbf5e5be00c1ea
4
- data.tar.gz: 6ff500aa644e8771e97070808fb7a0e07287a491
3
+ metadata.gz: c94ba6721fc9403df4bc78580b918cf15bff2586
4
+ data.tar.gz: 408a08f5bf1a7965b190ef7fd42577e9052cc0d4
5
5
  SHA512:
6
- metadata.gz: ee5dd8e3ec424b84075fccdb59d99616081654d9afa4241a419886b2e95f53e3ac10d378098a20d036564e0934caab010c231db3633dac0f2022844fb6140334
7
- data.tar.gz: 7473d5dec1fccb4f6edaf547cd1df890458ad85eb9e7563483edc80022324ccbdf06345e5d5ee9ea6678eafd3622505ceeb66c59a824d343c89f51874741f1a6
6
+ metadata.gz: ec7cbcecb49869c844e51941c5f09f4c6aef8865d9872b5fea5d4e3f0d0b94bb1fc0a062f6a3c73bfdf8e65a2408e0db5338333add8b42ef28f7897f7352fce3
7
+ data.tar.gz: f1221ea7f7caa3c46a4127cee4c88faddb7b9f6383143014ca4aff0bae08ae4fb6f3004e6d18378c6325e54778decfd8dbbadc2fca8bf5d8777e45eca53b6b96
@@ -402,7 +402,7 @@ module Apiotics
402
402
  config_file_path
403
403
  end
404
404
 
405
- def self.brand_and_burn_sd_image(download_directory, image_path, wifi_settings, cellular, config_file_path)
405
+ def self.brand_and_burn_sd_image(download_directory, image_path, wifi_settings, cellular, config_file_path, config)
406
406
  status = false
407
407
  Dir.chdir download_directory
408
408
  script_path = nil
@@ -413,9 +413,9 @@ module Apiotics
413
413
  end
414
414
  if script_path != nil
415
415
  #puts "Please wait..."
416
- puts "Running sudo -S #{script_path} brand_and_burn #{image_path} no_disk #{wifi_settings["ssid"]} #{wifi_settings["password"]} #{wifi_settings["security_mode"]} #{config_file_path} 0 #{cellular.to_s} dhcp"
416
+ puts "Running sudo -S #{script_path} brand_and_burn #{config["user"]} #{image_path} no_disk #{wifi_settings["ssid"]} #{wifi_settings["password"]} #{wifi_settings["security_mode"]} #{config_file_path} 0 #{cellular.to_s} dhcp"
417
417
  puts "Please enter your password so that the image may be written to your SD card."
418
- IO.popen("sudo -S #{script_path} brand_and_burn #{image_path} no_disk #{wifi_settings["ssid"]} #{wifi_settings["password"]} #{wifi_settings["security_mode"]} #{config_file_path} 0 #{cellular.to_s} dhcp") do |io|
418
+ IO.popen("sudo -S #{script_path} brand_and_burn #{config["user"]} #{image_path} no_disk #{wifi_settings["ssid"]} #{wifi_settings["password"]} #{wifi_settings["security_mode"]} #{config_file_path} 0 #{cellular.to_s} dhcp") do |io|
419
419
  while (line = io.gets) do
420
420
  puts line
421
421
  end
@@ -474,7 +474,7 @@ module Apiotics
474
474
  else
475
475
  cellular = cellular.value
476
476
  end
477
- Apiotics::Hardware.brand_and_burn_sd_image(download_directory, image_path, wifi_settings, cellular, config_file_path)
477
+ Apiotics::Hardware.brand_and_burn_sd_image(download_directory, image_path, wifi_settings, cellular, config_file_path, config)
478
478
  else
479
479
  puts "Error in download, file downloaded does not match file size on server. Please try running this command again."
480
480
  File.delete(image_path)
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.2.23'
2
+ VERSION = '0.2.24'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiotics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.23
4
+ version: 0.2.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-15 00:00:00.000000000 Z
11
+ date: 2018-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails