Module: Iot::Install

Included in:
Iot
Defined in:
lib/iot/install.rb

Instance Method Summary collapse

Instance Method Details

#installComponentsObject



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/iot/install.rb', line 25

def installComponents
  make_strobo_dir

  # Install mbed Libraries:
  # mbed, BLE_API, nrf51822
  zip_links = [
    Mbed_Ble_Api_Link,
    Mbed_Nrf51822_Link,
    Mbed_Mbed_Link
  ]
  zip_links.each do |zip_link|
    get_lib_zip zip_link
  end

  get_gcc_arm
end

#uninstallObject



20
21
22
23
# File 'lib/iot/install.rb', line 20

def uninstall
  executeOut, _, _ = *Open3.capture3("rm -rf #{StroboPath}")
  puts "rm -rf #{StroboPath}/*"
end