apiotics 0.2.10 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f232ca8929a719f9f538a8fa8b273b1f22264c96
4
- data.tar.gz: d399c712d1a719864fd363d49893abe9c38b0f3e
3
+ metadata.gz: db6cd04319d0626204bec257c2996307ea450b80
4
+ data.tar.gz: 5b7aab3cfba5c14cb824f04b2f3d78c4947a9373
5
5
  SHA512:
6
- metadata.gz: fb9740e865aab7f49012a2348f75844d9a90e8899675ee7eaccf8bbf01ebb5e41865f4eb73fffe7b5e12cf5bd261de2a80c0989240c0a8dc198c935a179a746c
7
- data.tar.gz: d566bf8c70db4d021929f6ecc4e8d5afa66ceb66e35062c9a716323c41412a1090caac2e7f97ba5f168d44a570591afeb32a6a6e51e1c6bf4187b83c48c05d18
6
+ metadata.gz: 7b33c0097709e5bfd1551e8fc1c838d4c23383c92a7f5fe07b3be35a1735960796f0792e68e9a26c21ba3ad81ab751fa7057087718d48b15158addce4d4e035f
7
+ data.tar.gz: 8b30fde35f8a3b9b0e2c0c9082711414c66a147d89642d66b1f49f659fd655bbb62e2e12b4d66698a9044d63223d539cacc53ea437fcea1ffdfe6732fd294b2e
@@ -391,6 +391,7 @@ module Apiotics
391
391
  end
392
392
  if branding_script_path != nil
393
393
  #puts "Please wait..."
394
+ puts "Running #{branding_script_path} #{image_path} #{wifi_settings["ssid"]} #{wifi_settings["password"]} #{config_file_path} dhcp"
394
395
  IO.popen("#{branding_script_path} #{image_path} #{wifi_settings["ssid"]} #{wifi_settings["password"]} #{config_file_path} dhcp") do |io|
395
396
  while (line = io.gets) do
396
397
  puts line
@@ -433,7 +434,7 @@ module Apiotics
433
434
  def self.burn_sd_image(download_directory, image_path, disk)
434
435
  Dir.chdir download_directory
435
436
  img_path = image_path.chomp(".img.gz") + "_branded.img.gz"
436
- puts "Burning #{image_path} to #{disk}..."
437
+ puts "Burning #{image_path}..."
437
438
  if Hardware.mac == true
438
439
  execute_path = download_directory.to_s + "/burn_image_to_disk.mac.sh"
439
440
  elsif Hardware.linux == true
@@ -444,9 +445,9 @@ module Apiotics
444
445
  if execute_path == nil
445
446
  puts "This computer is not running a recognized OS. Exiting."
446
447
  else
447
- puts "Running sudo #{execute_path} #{image_path} #{disk}"
448
+ puts "Running sudo #{execute_path} #{image_path}"
448
449
  #pwd = STDIN.getpass("Password:")
449
- IO.popen("sudo -S #{execute_path} #{img_path} #{disk}") do |io|
450
+ IO.popen("sudo -S #{execute_path} #{img_path}") do |io|
450
451
  while (line = io.gets) do
451
452
  puts line
452
453
  end
@@ -455,16 +456,16 @@ module Apiotics
455
456
  end
456
457
 
457
458
  def self.sd_card(worker_name, name, config)
458
- download_directory = Hardware.check_sd_card_scripts
459
+ download_directory = Apiotics::Hardware.check_sd_card_scripts
459
460
  if download_directory != nil
460
- image_path = Hardware.get_sd_image(download_directory, worker_name)
461
- wifi_settings = Hardware.fetch_wifi
461
+ image_path = Apiotics::Hardware.get_sd_image(download_directory, worker_name)
462
+ wifi_settings = Apiotics::Hardware.fetch_wifi
462
463
  if wifi_settings != nil
463
- config_file_path = Hardware.sd_config_file(worker_name, name, download_directory)
464
- if Hardware.brand_sd_image(download_directory, image_path, wifi_settings, config_file_path)
465
- disk = Hardware.find_smallest_disk
464
+ config_file_path = Apiotics::Hardware.sd_config_file(worker_name, name, download_directory)
465
+ if Apiotics::Hardware.brand_sd_image(download_directory, image_path, wifi_settings, config_file_path)
466
+ disk = Apiotics::Hardware.find_smallest_disk
466
467
  if disk != "no_disk"
467
- Hardware.burn_sd_image(download_directory, image_path, disk)
468
+ Apiotics::Hardware.burn_sd_image(download_directory, image_path, disk)
468
469
  else
469
470
  puts "No plausible SD card disk found. Please insert an SD card into your computer. Exiting."
470
471
  end
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.2.10'
2
+ VERSION = '0.2.11'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiotics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation