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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84d05e3dd361b5b18f46d0f92f2ec07ab7f9e91f
4
- data.tar.gz: 380b2e44889b4e0c4ea6b94bf6cdc00161a67650
3
+ metadata.gz: 1d6d85a583ccd5ac4b8b062588317ff8026c09b5
4
+ data.tar.gz: 7859f681b9cad4472038765d0ef20929682bdc3f
5
5
  SHA512:
6
- metadata.gz: d23dd1349708058411e35d2bac268e3b6d00640c28fec19dcdef8c345690e521522a621c56dd10b46f3de47f64e7b8af19a23d6d0d17c457fd1ce209b2cbc64f
7
- data.tar.gz: 75c44f513867390feb5c5b79547ebc1c5a9189605df27bd964836d5a281270d34213b4d918fff0bf3e34c5807cc5ec40722beaf4810a70b5c06f9ab8eff4756d
6
+ metadata.gz: f1830a20ef98235e27cf7da2da29f8c40eae630fed8b6812e6d830e538076ab67159730c921d0e9724db3970a89f7ef29c4d511ad1cdc2b271807589d05cc768
7
+ data.tar.gz: 41071674f8c71be33e1e2af02004b161fc93cdd8be240205bef19af78fdab1f8324cc5bfc56ee0a567be816f19445665edbc82a0b256061a7a456819ab8c0323
@@ -3,5 +3,4 @@
3
3
  exec 2>&1
4
4
  cd <%= self.engine.root %>
5
5
 
6
- exec envdir ./env <%= process.command %>
7
-
6
+ exec envdir <%= procdir %>/env <%= process.command %>
@@ -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, logruntmpl.result(binding()) )
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, runtmpl.result(binding()) )
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 load_template( name )
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.2
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-21 00:00:00.000000000 Z
11
+ date: 2015-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman