Skip to content

Instantly share code, notes, and snippets.

@toritori0318
Created February 14, 2015 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toritori0318/818f24349aa3f6101f46 to your computer and use it in GitHub Desktop.
Save toritori0318/818f24349aa3f6101f46 to your computer and use it in GitHub Desktop.
こんな風に書きたい
define :install_and_enable_package, version: nil do
# install
action :install, :default do
package params[:name] do
version params[:version] if params[:version]
action :install
end
service params[:name] do
action :enable
end
end
# disable
action :disable do
service params[:name] do
action :disable
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment