mesa_script 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/mesa_script.rb +25 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d4fed564aaa74ae07b3606c4b908360042c28833
4
- data.tar.gz: 8eb8f6f02f425fc3ec0aab8afbafdc8441c14a51
2
+ SHA256:
3
+ metadata.gz: 3ab0f331d6f6656414f2436937c9c22752722535290be3356637393459604fc7
4
+ data.tar.gz: 6ce60e13a3879f893a4b1a3d5d5dc3aefb65e393d361906652290f987c964899
5
5
  SHA512:
6
- metadata.gz: 5c396a46b5e08021bd842dc8dadf97772a7ee9b974638a75c9de031c7e15a4ff11249a7789414213240a816950977722f34906f4918eb3911c348067928b1639
7
- data.tar.gz: 86c7e3ddbad8100406d547dc582e48dcc944e1c26882d79a13ccef893f11a0a5649a53f0b3e2f3f69c156b634619c364c6e7f5bbd902ab1ad4b35985e949e953
6
+ metadata.gz: faff5eeb809f3c538194f4462ff2b53955fee0afb973defdd7d9d8dbf57719fce4c496346e8713cd5018fc424fc420fede908ce61233162667ea96ef957ac02b
7
+ data.tar.gz: b4ce39b6da30a6acce0be9899450e03290714c05e980cda5edfe57d6499679ed7549b9c90f2cb9b633ab27e33bab3c0733c49b2c81f135234157daa14b874fbd
data/lib/mesa_script.rb CHANGED
@@ -163,15 +163,29 @@ class Inlist
163
163
  )
164
164
  end
165
165
 
166
- # short hand for adding binary_defaults namelist using sensible defaults as
167
- # of 10108
168
- def self.add_binary_defaults
166
+ # short hand for adding binary_controls_defaults namelist using sensible
167
+ # defaults as of 10108
168
+ def self.add_binary_controls_defaults(verbose: false)
169
169
  config_namelist(
170
170
  namelist: :binary_controls,
171
171
  source_files: File.join(ENV['MESA_DIR'], 'binary', 'public',
172
172
  'binary_controls.inc'),
173
173
  defaults_file: File.join(ENV['MESA_DIR'], 'binary', 'defaults',
174
- 'binary_controls.defaults')
174
+ 'binary_controls.defaults'),
175
+ verbose: verbose
176
+ )
177
+ end
178
+
179
+ # short hand for adding binary_job_defaults namelist using sensible defaults
180
+ # as of 10108
181
+ def self.add_binary_job_defaults(verbose: false)
182
+ config_namelist(
183
+ namelist: :binary_job,
184
+ source_files: File.join(ENV['MESA_DIR'], 'binary', 'private',
185
+ 'binary_job_controls.inc'),
186
+ defaults_file: File.join(ENV['MESA_DIR'], 'binary', 'defaults',
187
+ 'binary_job.defaults'),
188
+ verbose: verbose
175
189
  )
176
190
  end
177
191
 
@@ -183,6 +197,13 @@ class Inlist
183
197
  add_pgstar_defaults
184
198
  end
185
199
 
200
+ # quickly add both major namelists for binary module (binary_job and
201
+ # binary_controls)
202
+ def self.add_binary_defaults
203
+ add_binary_job_defaults
204
+ add_binary_controls_defaults
205
+ end
206
+
186
207
  ############### NO MORE [SIMPLE] USER-CUSTOMIZABLE FEATURES BELOW ##############
187
208
 
188
209
  # This tells the class to initialize its structure if it hasn't already.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mesa_script
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Wolf
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  version: '0'
42
42
  requirements: []
43
43
  rubyforge_project:
44
- rubygems_version: 2.5.2.3
44
+ rubygems_version: 2.7.6
45
45
  signing_key:
46
46
  specification_version: 4
47
47
  summary: MesaScript is a domain specific language (DSL) that allows the user to write