Method: ImageServer::Installer#install
- Defined in:
- lib/image_server/installer.rb
#install ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/image_server/installer.rb', line 18 def install return unless valid_platform? return if installed_latest? FileUtils.mkdir_p 'bin' File.open(bin_path, 'wb') do |saved_file| open(remote_url, 'rb') do |read_file| saved_file.write(read_file.read) end end File.chmod(744, bin_path) end |