Sha256: 4b1ad23acb15bbd1a55c3e2c5a5898c9be0e59bcde56ee5516065be86e3ae9fd
Contents?: true
Size: 429 Bytes
Versions: 2
Compression:
Stored size: 429 Bytes
Contents
namespace :server do desc "Set terminable flag to true/false for the instance :instance" task :set_terminable, [:instance, :value] do |t, args| if args[:instance].nil? || args[:value].nil? puts "You must specify instance and true/false" return end DH.set_server_data_attr args[:instance], 'terminable', (args[:value] == "true" ? "true" : "false") puts DH.get_server_data args[:instance] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gaptool-server-0.6.4 | tasks/server.rb |
gaptool-server-0.6.3 | tasks/server.rb |