chake 0.2.3 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/chake.spec.erb +2 -1
- data/lib/chake.rb +3 -1
- data/lib/chake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b8f2665effc9f55bc3948b1dcde3f793a3b9a35
|
4
|
+
data.tar.gz: 6a14da674d95a92dea7e0dbd5365d38e30ab71af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d492a36c3ff7537df17d7cb98e18e126d0eae79a223197961ced8bfb62682a5be6e4faf030f99477becab0e8b3187e13bafd59b5a74cb07da714845e89b2d5ff
|
7
|
+
data.tar.gz: c6532f016fe551e84f3ff2290ac3344a4d4994db05c69e3753cad0e8abdee2e8e6ca0f78a71b360453d0da0deadf7016e383675b930c8e50a826aff84511b970
|
data/chake.spec.erb
CHANGED
@@ -31,6 +31,7 @@ Requires: ruby, rubygem-rake
|
|
31
31
|
%install
|
32
32
|
%{__rm} -rf %{buildroot}
|
33
33
|
mkdir -p %{gembuilddir}
|
34
|
+
sed -e 's#spec.files\s*=.*#spec.files = Dir.glob('**/*')#' %{name}.gemspec
|
34
35
|
rake build
|
35
36
|
gem install --local --install-dir %{gembuilddir} --force pkg/*.gem
|
36
37
|
mkdir -p %{buildroot}/%{_bindir}
|
@@ -41,6 +42,6 @@ rmdir %{gembuilddir}/bin
|
|
41
42
|
rm -rf $RPM_BUILD_ROOT
|
42
43
|
|
43
44
|
%files
|
44
|
-
|
45
|
+
%{gemdir}
|
45
46
|
%{_bindir}/*
|
46
47
|
|
data/lib/chake.rb
CHANGED
@@ -103,11 +103,11 @@ def write_json_file(file, data)
|
|
103
103
|
end
|
104
104
|
|
105
105
|
platforms = Dir.glob(File.expand_path('chake/bootstrap/*.sh', File.dirname(__FILE__))).sort
|
106
|
-
bootstrap_script = '.tmp/bootstrap'
|
107
106
|
|
108
107
|
$nodes.each do |node|
|
109
108
|
|
110
109
|
hostname = node.hostname
|
110
|
+
bootstrap_script = '.tmp/bootstrap-' + hostname
|
111
111
|
|
112
112
|
file bootstrap_script => platforms do |t|
|
113
113
|
mkdir_p(File.dirname(bootstrap_script))
|
@@ -117,6 +117,8 @@ $nodes.each do |node|
|
|
117
117
|
platforms.each do |platform|
|
118
118
|
f.puts(File.read(platform))
|
119
119
|
end
|
120
|
+
f.puts "echo '#{hostname}' > /etc/hostname"
|
121
|
+
f.puts 'hostname --file /etc/hostname'
|
120
122
|
end
|
121
123
|
chmod 0755, t.name
|
122
124
|
end
|
data/lib/chake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antonio Terceiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|