【发布时间】:2014-09-24 01:08:09
【问题描述】:
bash "编辑 gemfile" 做
cwd "/home/vagrant/myapp"
code <<-EOH
echo "group :development, :test do
gem 'capybara'
gem 'rspec-rails'
gem 'selenium-webdriver'
gem 'capybara-screenshot'
gem 'launchy'
end" >>Gemfile
EOH
#####not_if do ::File.exists?('/home/vagrant/myapp/Gemfile') end#####
end
我希望它在 Gemfile 中添加后不再添加,以避免重复... 请告诉我如何使用正确的 not_if 命令,谢谢!
【问题讨论】: