Sha256: 571b95168ab5dc5f01ac358fe0842aebf2cef19cf4b4d5c3d7d948954d709daa

Contents?: true

Size: 671 Bytes

Versions: 6

Compression:

Stored size: 671 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

  desc 'Remove a server from the gaptool database (no actions on AWS)'
  task :rm, [:instance] do |_t, args|
    if args[:instance].nil?
      puts 'You must select an instance'
      return 1
    end
    DH.rmserver(args[:instance])
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gaptool-server-0.8.5 tasks/server.rb
gaptool-server-0.8.4 tasks/server.rb
gaptool-server-0.8.3 tasks/server.rb
gaptool-server-0.8.2 tasks/server.rb
gaptool-server-0.8.1 tasks/server.rb
gaptool-server-0.8.0 tasks/server.rb