Skip to content

Commit 83baacf

Browse files
committed
Update feature to work with dependencies.
This requires Ruby 2.2 to be installed now that gems used during test depend on it. #76
1 parent 145d12b commit 83baacf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

features/step_definitions.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ def start_and_tag_instance
156156

157157
def get_user_data
158158
user_data = "#!/bin/bash\n"\
159-
"yum install -y git gcc gcc-c++ ruby-devel\n"\
159+
"yum remove -y ruby20\n"\
160+
"yum install -y git gcc gcc-c++ ruby22 ruby22-devel\n"\
160161
"cd /home/ec2-user\n"\
161162
"gem install io-console\n"\
162163
"gem install bundler\n"\
@@ -166,7 +167,7 @@ def get_user_data
166167
"$BUNDLE install\n"\
167168
"mkdir -p /etc/codedeploy-agent/conf\n"\
168169
"cp conf/codedeployagent.yml /etc/codedeploy-agent/conf/\n"\
169-
"$BUNDLE exec bin/codedeploy-agent-wrapper start"
170+
"$BUNDLE exec bin/codedeploy-agent start"
170171
Base64.encode64(user_data)
171172
end
172173

0 commit comments

Comments
 (0)