Skip to content

Commit

Permalink
Update Vagrantfile.dist
Browse files Browse the repository at this point in the history
  • Loading branch information
ytake committed Jan 11, 2016
1 parent 7e55aaf commit a16cca9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stub/Vagrantfile.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ confDir = $confDir ||= File.expand_path("vendor/ytake/gardening", File.dirname(_

GardeningYamlPath = "./vagrant.yaml"
GardeningJsonPath = "./vagrant.json"
afterScriptPath = "./after.sh"
appendScriptPath = "./append.sh"
aliasesPath = "./aliases"

require File.expand_path(confDir + '/scripts/builder.rb')
Expand All @@ -28,7 +28,7 @@ Vagrant.configure(2) do |config|
Builder.configure(config, JSON.parse(File.read(GardeningJsonPath)))
end

if File.exists? afterScriptPath then
config.vm.provision "shell", path: afterScriptPath
if File.exists? appendScriptPath then
config.vm.provision "shell", path: appendScriptPath
end
end

0 comments on commit a16cca9

Please sign in to comment.