Sha256: 8656a5a7efa870ed97110017ce031934daca83906087c1b95d1c60c56a79bbf7

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

namespace :role do
  desc "Set security group for a role"
  task :set_sg, [:role, :environment, :security_group] do |t, args|
    abort("Missing parameters") if args[:role].nil? || args[:environment].nil? || args[:role].empty? || args[:environment].empty? || args[:security_group].nil? || args[:security_group].empty?
    role = DH.get_role_data(args[:role])
    role['sg'].merge!(args[:environment] => args[:security_group])
    DH.save_role_data(args[:role], role)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gaptool-server-0.6.6 tasks/role.rb