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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb57e3e260528eaf17a91083a19f87a4285637ec
4
- data.tar.gz: 1a322072a748b118893ef5848fd7bb8d67f55b84
3
+ metadata.gz: 8b8f2665effc9f55bc3948b1dcde3f793a3b9a35
4
+ data.tar.gz: 6a14da674d95a92dea7e0dbd5365d38e30ab71af
5
5
  SHA512:
6
- metadata.gz: db1227f01c1dc35ec10633fd7c17ebe0ba50b9e4bffecc73d80b8624a772fcc87f93bd8d7fc11f42e9feae5bb4d6dd189ff58e057c5c64e42fa9e6325243f92d
7
- data.tar.gz: 48cd44d3be61043676425b479366c281d133c4741b4193923cd60a43f9870fd8c516b6c9b4127a4f3cd9031b5f30fa564bc39f2734cc765a3c3bfdbc772c014d
6
+ metadata.gz: d492a36c3ff7537df17d7cb98e18e126d0eae79a223197961ced8bfb62682a5be6e4faf030f99477becab0e8b3187e13bafd59b5a74cb07da714845e89b2d5ff
7
+ data.tar.gz: c6532f016fe551e84f3ff2290ac3344a4d4994db05c69e3753cad0e8abdee2e8e6ca0f78a71b360453d0da0deadf7016e383675b930c8e50a826aff84511b970
@@ -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
- /usr/lib/chake
45
+ %{gemdir}
45
46
  %{_bindir}/*
46
47
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Chake
2
- VERSION = "0.2.3"
2
+ VERSION = "0.3"
3
3
  end
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.2.3
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-06 00:00:00.000000000 Z
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler