Sha256: 6135b19694131623c80cf1a0dd5144be5692485674b07caf383a253eeae70a36
Contents?: true
Size: 470 Bytes
Versions: 5
Compression:
Stored size: 470 Bytes
Contents
module Vpsb module Resources class DoImage < BaseResource include AskSupport include ShellSupport res :do_image def call(core) puts "Loading list of available operating systems" in_dir(core.get(:server_app_path), "knife digital_ocean image list -G | grep -i 'Ubuntu'") answer = ask { puts 'Which system? Enter its id (default: 3101918)' }.strip answer.empty? ? '3101918' : answer end end end end
Version data entries
5 entries across 5 versions & 1 rubygems