caterer 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Caterer
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
@@ -53,26 +53,26 @@ detect_platform() {
53
53
  echo $platform
54
54
  }
55
55
 
56
- install_curl() {
57
- echo "installing curl..."
56
+ install() {
57
+ echo "installing $1..."
58
58
  case "$(detect_platform)" in
59
59
  "ubuntu" )
60
- apt-get -y --force-yes install curl
60
+ apt-get -y --force-yes install $1
61
61
  ;;
62
62
  "debian" )
63
- apt-get -y --force-yes install curl
63
+ apt-get -y --force-yes install $1
64
64
  ;;
65
65
  "el" )
66
- yum -y install curl
66
+ yum -y install $1
67
67
  ;;
68
68
  "fedora" )
69
- yum -y install curl
69
+ yum -y install $1
70
70
  ;;
71
71
  "suse" )
72
- yast -i curl
72
+ yast -i $1
73
73
  ;;
74
74
  "sles" )
75
- yast -i curl
75
+ yast -i $1
76
76
  ;;
77
77
  *)
78
78
  echo "sorry, I don't have a bootstrap for this platform"
@@ -81,37 +81,9 @@ install_curl() {
81
81
  esac
82
82
  }
83
83
 
84
- install_rsync() {
85
- echo "installing rsync..."
86
- case "$(detect_platform)" in
87
- "ubuntu" )
88
- apt-get -y --force-yes install rsync
89
- ;;
90
- "debian" )
91
- apt-get -y --force-yes install rsync
92
- ;;
93
- "el" )
94
- yum -y install rsync
95
- ;;
96
- "fedora" )
97
- yum -y install rsync
98
- ;;
99
- "suse" )
100
- yast -i rsync
101
- ;;
102
- "sles" )
103
- yast -i rsync
104
- ;;
105
- *)
106
- echo "sorry, I don't have a bootstrap for this platform"
107
- exit 1
108
- ;;
109
- esac
110
- }
111
-
112
- exists curl || install_curl
84
+ exists curl || install curl
113
85
 
114
- exists rsync || install_rsync
86
+ exists rsync || install rsync
115
87
 
116
88
  # install chef-solo
117
89
  exists chef-solo || curl -L https://www.opscode.com/chef/install.sh | bash
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caterer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: