slurry 0.0.4 → 0.0.5

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.
Files changed (2) hide show
  1. data/bin/slurry +8 -3
  2. metadata +1 -1
data/bin/slurry CHANGED
@@ -23,6 +23,13 @@ OptionParser.new do |opts|
23
23
 
24
24
  end.parse!
25
25
 
26
+ def loadconf (configfile)
27
+ # Load the configuration file
28
+ config = YAML::load(File.read(configfile))
29
+ config
30
+ end
31
+
32
+
26
33
  def run(options)
27
34
 
28
35
  # Determine if we should load the default configuration file
@@ -32,9 +39,6 @@ def run(options)
32
39
  configfile = options[:configfile]
33
40
  end
34
41
 
35
- # Load the configuration file
36
- config = YAML::load(File.read(configfile))
37
-
38
42
  # Determin what kind of run we are asked to perform
39
43
  case options[:type]
40
44
  when "clean" # Remove everything from the cache
@@ -42,6 +46,7 @@ def run(options)
42
46
  when "report" # Report on the state of the cache
43
47
  Slurry.report
44
48
  when "liaise" # Show the json around the floor
49
+ config = loadconf(configfile)
45
50
  Slurry.liaise(config[:server],config[:port])
46
51
  else # Load json data from stdin
47
52
  Slurry.funnel
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slurry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: