apiotics 0.2.23 → 0.2.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apiotics/hardware.rb +4 -4
- data/lib/apiotics/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c94ba6721fc9403df4bc78580b918cf15bff2586
|
4
|
+
data.tar.gz: 408a08f5bf1a7965b190ef7fd42577e9052cc0d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec7cbcecb49869c844e51941c5f09f4c6aef8865d9872b5fea5d4e3f0d0b94bb1fc0a062f6a3c73bfdf8e65a2408e0db5338333add8b42ef28f7897f7352fce3
|
7
|
+
data.tar.gz: f1221ea7f7caa3c46a4127cee4c88faddb7b9f6383143014ca4aff0bae08ae4fb6f3004e6d18378c6325e54778decfd8dbbadc2fca8bf5d8777e45eca53b6b96
|
data/lib/apiotics/hardware.rb
CHANGED
@@ -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)
|
data/lib/apiotics/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|