toquen 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -91,10 +91,11 @@ By default, instance information is only pulled out of the default region (us-ea
91
91
  set :aws_regions, ['us-west-1', 'us-west-2']
92
92
  ```
93
93
 
94
- You can also manually specify the version of rubygems you want installed (default is 2.1.11):
94
+ You can also manually specify the version of ruby (default 1.9.3) and rubygems (defualt 2.2.2) you want installed:
95
95
 
96
96
  ```ruby
97
97
  set :rubygems_version, "2.1.11"
98
+ set :ruby_version, "2.0"
98
99
  ```
99
100
 
100
101
  ## View Instances
@@ -7,7 +7,8 @@ module Toquen
7
7
  hosttype = fetch(:hosttype, 'ubuntu')
8
8
  path = File.expand_path("../templates/#{hosttype}_bootstrap.erb", __FILE__)
9
9
  raise "Bootstrap process for #{hosttype} does not exist!" unless File.exists?(path)
10
- rubygems_version = fetch(:rubygems_version, '2.1.11')
10
+ rubygems_version = fetch(:rubygems_version, '2.2.2')
11
+ ruby_version = fetch(:ruby_version, '1.9.3')
11
12
  user = fetch(:ssh_options)[:user]
12
13
  StringIO.new ERB.new(File.read(path)).result(binding)
13
14
  end
@@ -3,8 +3,8 @@ if [ -e "/home/<%= user %>/bootstrap.lock" ]; then exit 0; fi
3
3
  DEBIAN_FRONTEND=noninteractive apt-get -y update
4
4
  DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
5
5
  DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
6
- DEBIAN_FRONTEND=noninteractive apt-get -y install ruby1.9.3 ruby-dev automake make
7
- update-alternatives --set ruby /usr/bin/ruby1.9.1
6
+ DEBIAN_FRONTEND=noninteractive apt-get -y install gcc ruby<%= ruby_version %> ruby<%= ruby_version %>-dev automake make
7
+ update-alternatives --set ruby /usr/bin/ruby<%= ruby_version %>
8
8
  echo "127.0.0.1 <%= host.properties.awsname %>" >> /etc/hosts
9
9
  echo "<%= host.properties.awsname %>" > /etc/hostname
10
10
  hostname "<%= host.properties.awsname %>"
@@ -1,3 +1,3 @@
1
1
  module Toquen
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toquen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-18 00:00:00.000000000 Z
12
+ date: 2014-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  segments:
129
129
  - 0
130
- hash: 3464588055419203147
130
+ hash: 544724606650520311
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  none: false
133
133
  requirements:
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  segments:
138
138
  - 0
139
- hash: 3464588055419203147
139
+ hash: 544724606650520311
140
140
  requirements: []
141
141
  rubyforge_project:
142
142
  rubygems_version: 1.8.25