èªåã®ãã·ã³ã®ç°å¢æ§ç¯
æ°å¹´ã«ä¸åº¦ãªã®ã§ã¤ãã¤ãèªååã¨ããã¦ãªãã£ãã®ã ãã©ãHomebrewã§ã¤ã³ã¹ãã¼ã«ããã¤ããããèªååãã¦ãè¯ããã¨æã£ãã®ã§ã itamae-kitchen/itamae · GitHub ã§ããããã«ããã
caskã§ã®ã¤ã³ã¹ãã¼ã«ã¨ãã¾ã§èªåã§ã§ããããã«ãªãã¨çµæ§è¯ãããªã¼ã¨æã£ã¦ããããããã¾ã§ãã£ã¦ãªãããã
ãã®ã¨ã³ããªãèªãã§å¾ããããã®
itamae
ã«ã¤ãã¦ã¡ãã£ã¨ã ãç¥èãå¾ãããããããã¾ããã
- ããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ãè¡ãæ¹æ³
- ã·ã§ã«ã¹ã¯ãªããã®å®è¡ãããæ¹æ³
itamae
ã®local
ã¢ã¼ãï¼å®è¡ãã¦ãããã·ã³èªèº«ã対象ã¨ããï¼ã®å®è¡æ¹æ³
ãªãã¸ããªã¨å®éã®ã½ã¼ã¹ã³ã¼ãã¯ãããªæã
dotfiles/app_setup at master · sugamasao/dotfiles · GitHub
主㫠package
ãªã½ã¼ã¹ã使ã£ã¦ãã¾ãããbrew tap
ã®é¨åã¯ç´æ¥ã·ã§ã«ã¹ã¯ãªãããå®è¡ãã¦ããããã execute
ãªã½ã¼ã¹ã使ã£ã¦ãã¾ãã
ã¾ããHomebrewã¯éè¤ãã¦ã¤ã³ã¹ãã¼ã«ãã¦ãã¨ã©ã¼ã«ãªã£ããã¯ãã¾ãããã only_if
ã not_if
ã使ã£ã¦ã¤ã³ã¹ãã¼ã«æ¸ã¿ã§ããã°å®è¡ãã¹ãããããããã«ãã¦å¦çæéãç縮ãã¦ãã¾ãã
# brew install %w(openssl git tig imagemagick mysql zsh tmux mecab mecab-ipadic tree).each do |pkg| package pkg do action :install only_if "brew info #{ pkg } | grep -qi 'Not Installed'" end end ## using tap repository %w(sanemat/font peco/peco).each do |tap_name| execute "using tap #{ tap_name }" do command "brew tap #{ tap_name }" not_if "brew tap | grep -q '#{ tap_name }'" end end %w(ricty peco).each do |pkg| package pkg do action :install only_if "brew info #{ pkg } | grep -qi 'Not Installed'" end end
local
ã¢ã¼ãã§å®è¡ããã«ã¯ãã®ããã«ããã
$ bundle exec itamae local recipe.rb
ã¾ã¼ãã®ç¨åº¦ã·ã§ã«ã¹ã¯ãªããã§ãè¯ããããï¼ã¨ããæ°ããããã ãã©ãä»ã©ãã¯OSXã§ãRuby 2.0ç³»ãããã©ã«ãã§å ¥ãããã«ãªã£ã¦ãããèããRuby使ã£ã¦ãã°è¯ãã®ã§ã¯ã¨ããæ°æã¡ã«ãªã£ã¦ããããã¨éè¦ãªã®ã¯itamaeãæ°ã«å ¥ã£ã¦ãã®ã§ã使ã£ã¦ããããã¨ããæ°æã¡w