foreman-export-allah 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/data/foreman-export-allah/templates/run.erb +1 -2
- data/lib/foreman/export/allah.rb +3 -5
- 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: 1d6d85a583ccd5ac4b8b062588317ff8026c09b5
|
|
4
|
+
data.tar.gz: 7859f681b9cad4472038765d0ef20929682bdc3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1830a20ef98235e27cf7da2da29f8c40eae630fed8b6812e6d830e538076ab67159730c921d0e9724db3970a89f7ef29c4d511ad1cdc2b271807589d05cc768
|
|
7
|
+
data.tar.gz: 41071674f8c71be33e1e2af02004b161fc93cdd8be240205bef19af78fdab1f8324cc5bfc56ee0a567be816f19445665edbc82a0b256061a7a456819ab8c0323
|
data/lib/foreman/export/allah.rb
CHANGED
|
@@ -111,9 +111,8 @@ class Foreman::Export::Allah < Foreman::Export::Base
|
|
|
111
111
|
say " setting up logging..."
|
|
112
112
|
logdir = procdir + 'log'
|
|
113
113
|
logdir.mkpath
|
|
114
|
-
logruntmpl = self.load_template( 'log-run' )
|
|
115
114
|
runfile = logdir + 'run'
|
|
116
|
-
write_file( runfile,
|
|
115
|
+
write_file( runfile, template('log-run').result(binding) )
|
|
117
116
|
runfile.chmod( 0755 )
|
|
118
117
|
|
|
119
118
|
# Set up the envdir
|
|
@@ -133,9 +132,8 @@ class Foreman::Export::Allah < Foreman::Export::Base
|
|
|
133
132
|
write_file(groupfile, "#{app}-#{name}\n#{app}\n")
|
|
134
133
|
|
|
135
134
|
# Set up the runfile
|
|
136
|
-
runtmpl = self.load_template( 'run' )
|
|
137
135
|
runfile = procdir + 'run'
|
|
138
|
-
write_file( runfile,
|
|
136
|
+
write_file( runfile, template('run').result(binding) )
|
|
139
137
|
runfile.chmod( 0755 )
|
|
140
138
|
|
|
141
139
|
end
|
|
@@ -143,7 +141,7 @@ class Foreman::Export::Allah < Foreman::Export::Base
|
|
|
143
141
|
|
|
144
142
|
### Load the template for the file named +name+, and return it
|
|
145
143
|
### as an ERB object.
|
|
146
|
-
def
|
|
144
|
+
def template( name )
|
|
147
145
|
template_name = "#{name}.erb"
|
|
148
146
|
template = self.template_search_path.
|
|
149
147
|
map {|dir| dir + template_name }.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman-export-allah
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Palmer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: foreman
|