depth 1
user new_resource.user
group new_resource.group
- notifies :run, "execute[#{rails_directory}/Gemfile]"
- notifies :run, "execute[#{rails_directory}/app/assets/javascripts/i18n]"
- notifies :run, "execute[#{rails_directory}/public/assets]"
- notifies :delete, "file[#{rails_directory}/public/export/embed.html]"
notifies :restart, "passenger_application[#{rails_directory}]"
end
group new_resource.group
mode "664"
content application_yml
- notifies :run, "execute[#{rails_directory}/public/assets]"
+ notifies :restart, "passenger_application[#{rails_directory}]"
only_if { ::File.exist?("#{rails_directory}/config/example.application.yml") }
end
group new_resource.group
mode "664"
content YAML.dump(settings)
- notifies :run, "execute[#{rails_directory}/public/assets]"
only_if { ::File.exist?("#{rails_directory}/config/settings.yml") }
end
group new_resource.group
mode "664"
content YAML.dump(storage_configuration)
- notifies :run, "execute[#{rails_directory}/public/assets]"
end
if new_resource.piwik_configuration
group new_resource.group
mode "664"
content YAML.dump(new_resource.piwik_configuration)
- notifies :run, "execute[#{rails_directory}/public/assets]"
end
else
file "#{rails_directory}/config/piwik.yml" do
action :delete
- notifies :run, "execute[#{rails_directory}/public/assets]"
end
end
group "root"
environment "NOKOGIRI_USE_SYSTEM_LIBRARIES" => "yes"
subscribes :run, "gem_package[bundler#{new_resource.ruby}]"
+ subscribes :run, "git[#{rails_directory}]"
notifies :restart, "passenger_application[#{rails_directory}]"
end
cwd rails_directory
user new_resource.user
group new_resource.group
- notifies :run, "execute[#{rails_directory}/public/assets]"
+ subscribes :run, "git[#{rails_directory}]"
end
execute "#{rails_directory}/public/assets" do
cwd rails_directory
user new_resource.user
group new_resource.group
+ subscribes :run, "git[#{rails_directory}]"
+ subscribes :run, "file[create:#{rails_directory}/config/application.yml]"
+ subscribes :run, "file[#{rails_directory}/config/settings.local.yml]"
+ subscribes :run, "file[#{rails_directory}/config/storage.yml]"
+ subscribes :run, "file[#{rails_directory}/config/piwik.yml]"
+ subscribes :run, "execute[#{rails_directory}/app/assets/javascripts/i18n]"
notifies :restart, "passenger_application[#{rails_directory}]"
end
file "#{rails_directory}/public/export/embed.html" do
action :nothing
+ subscribes :delete, "git[#{rails_directory}]"
end
passenger_application rails_directory do