class Netfira::InstallerGenerator::Binary

Public Class Methods

available?() click to toggle source
# File lib/netfira/installer_generator/binary.rb, line 7
def self.available?
  @available = !bin_file.nil?
end
bin_file() click to toggle source
# File lib/netfira/installer_generator/binary.rb, line 11
def self.bin_file
  @bin_file = bin_files.select{ |file| system "which #{file} > /dev/null" }.first
end

Public Instance Methods

esc(string) click to toggle source
# File lib/netfira/installer_generator/binary.rb, line 19
def esc(string)
  Shellwords.escape string
end
run(output_device = :null) click to toggle source
# File lib/netfira/installer_generator/binary.rb, line 15
def run(output_device = :null)
  system "#{command} > /dev/#{output_device}"
end