Permalink
Browse files

vim のインストールと .vimrc の設置 recipe を追加

  • Loading branch information...
1 parent 3f24566 commit 60b937e85343c6b15c8965174e16096c11a6b208 @dragon3 dragon3 committed Dec 6, 2012
@@ -79,6 +79,7 @@ Vagrant::Config.run do |config|
chef.add_recipe "init"
chef.add_recipe "deps"
chef.add_recipe "perlbrew"
+ chef.add_recipe "vim"
end
# Enable provisioning with chef server, specifying the chef server URL,
@@ -0,0 +1,12 @@
+# CHANGELOG for vim
+
+This file is used to list changes made in each version of vim.
+
+## 0.1.0:
+
+* Initial release of vim
+
+- - -
+Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.
+
+The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.
@@ -0,0 +1,12 @@
+Description
+===========
+
+Requirements
+============
+
+Attributes
+==========
+
+Usage
+=====
+
@@ -0,0 +1,14 @@
+syntax on
+filetype on
+
+au BufNewFile,BufRead *.psgi set filetype=perl
+
+set autoindent
+set expandtab
+set number
+set nobackup
+
+set backspace=indent,eol,start
+set tabstop=2
+set softtabstop=2
+set shiftwidth=2
@@ -0,0 +1,6 @@
+maintainer "dragon3"
+maintainer_email "ryuzo.yamamoto@gmail.com"
+license "Apache 2.0"
+description "Installs/Configures vim"
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version "0.1.0"
@@ -0,0 +1,31 @@
+#
+# Cookbook Name:: vim
+# Recipe:: default
+#
+# Copyright 2012, dragon3
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+package "vim"
+
+users = ["student","student2"]
+
+users.each do |user|
+ cookbook_file "/home/#{user}/.vimrc" do
+ source "vimrc"
+ owner "#{user}"
+ group "#{user}"
+ mode "0644"
+ not_if "test -f /home/#{user}/.vimrc"
+ end
+end

0 comments on commit 60b937e

Please sign in to comment.