summaryrefslogtreecommitdiff
path: root/spec/acceptance/beaker/git/group_checkout/group_checkout_https.rb
diff options
context:
space:
mode:
authorJohn Duarte <john.duarte@puppetlabs.com>2014-05-15 11:43:29 -0700
committerJohn Duarte <john.duarte@puppetlabs.com>2014-05-18 11:38:20 -0700
commit97e64b52f63f3dd673dfa2fe92c71d4d9ddbcbc7 (patch)
tree7c67a56ccf64768392b0eb5e7c7061cb31b33375 /spec/acceptance/beaker/git/group_checkout/group_checkout_https.rb
parent3d35e61e4377e73365b9f7c340b225d787fe3cbb (diff)
Add conditional ruby path based on pe
Diffstat (limited to 'spec/acceptance/beaker/git/group_checkout/group_checkout_https.rb')
-rw-r--r--spec/acceptance/beaker/git/group_checkout/group_checkout_https.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/acceptance/beaker/git/group_checkout/group_checkout_https.rb b/spec/acceptance/beaker/git/group_checkout/group_checkout_https.rb
index 4551aee..3a72cc8 100644
--- a/spec/acceptance/beaker/git/group_checkout/group_checkout_https.rb
+++ b/spec/acceptance/beaker/git/group_checkout/group_checkout_https.rb
@@ -5,6 +5,7 @@ repo_name = 'testrepo_group_checkout'
group = 'mygroup'
hosts.each do |host|
+ ruby = '/opt/puppet/bin/ruby' if host.is_pe? || 'ruby'
tmpdir = host.tmpdir('vcsrepo')
step 'setup - create repo' do
install_package(host, 'git')
@@ -28,7 +29,7 @@ hosts.each do |host|
server.start
EOF
create_remote_file(host, '/tmp/https_daemon.rb', https_daemon)
- #on(host, "ruby /tmp/https_daemon.rb")
+ #on(host, "#{ruby} /tmp/https_daemon.rb")
end
step 'setup - create group' do
@@ -37,7 +38,7 @@ hosts.each do |host|
teardown do
on(host, "rm -fr #{tmpdir}")
- on(host, 'ps ax | grep "ruby /tmp/https_daemon.rb" | grep -v grep | awk \'{print "kill -9 " $1}\' | sh')
+ on(host, 'ps ax | grep "#{ruby} /tmp/https_daemon.rb" | grep -v grep | awk \'{print "kill -9 " $1}\' | sh')
apply_manifest_on(host, "group { '#{group}': ensure => absent, }")
end