Sha256: 4f975c996d08a850fa25280365e12937360172318c0c6598294b91719a6a3aea

Contents?: true

Size: 1.03 KB

Versions: 6

Compression:

Stored size: 1.03 KB

Contents

#!/usr/bin/ruby

#    This file is part of EC2 on Rails.
#    http://rubyforge.org/projects/ec2onrails/
#
#    Copyright 2007 Paul Dowman, http://pauldowman.com/
#
#    EC2 on Rails is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    EC2 on Rails is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

require "#{File.dirname(__FILE__)}/../lib/roles_helper"
include Ec2onrails::RolesHelper

if ARGV[0].nil? || ARGV[0] == ""
  puts "Missing rolename argument"
  exit 2
end

if in_role?(ARGV[0].to_sym)
  exit 0
else
  exit 1
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
ewoutvonk-ec2onrails-0.9.10.4.001 server/files/usr/local/ec2onrails/bin/in_role
gigpark-ec2onrails-0.9.10.3 server/files/usr/local/ec2onrails/bin/in_role
pauldowman-ec2onrails-0.9.10.1 server/files/usr/local/ec2onrails/bin/in_role
pauldowman-ec2onrails-0.9.10.2 server/files/usr/local/ec2onrails/bin/in_role
pauldowman-ec2onrails-0.9.10.3 server/files/usr/local/ec2onrails/bin/in_role
pauldowman-ec2onrails-0.9.10.4 server/files/usr/local/ec2onrails/bin/in_role