nitos_testbed_rc 1.0.0.pre.1 → 1.0.0.pre.2

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 (4) hide show
  1. data/bin/install_ntrc +11 -2
  2. data/bin/omf6 +1 -1
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
data/bin/install_ntrc CHANGED
@@ -16,11 +16,20 @@ conf_files = []
16
16
  conf_files << "cm_proxy_conf.yaml"
17
17
  conf_files << "frisbee_proxy_conf.yaml"
18
18
  conf_files << "user_proxy_conf.yaml"
19
- conf_files << "omf_script_conf.yaml"
19
+ # conf_files << "omf_script_conf.yaml"
20
20
 
21
21
  conf_files.each do |file|
22
- puts "Corying configuration file '#{gem_root}/etc/#{file}' to '#{config_path}'."
22
+ puts "Copying configuration file '#{gem_root}/etc/#{file}' to '#{config_path}'."
23
23
  FileUtils.cp "#{gem_root}/etc/#{file}", "#{config_path}/#{file}"
24
24
  FileUtils.chmod 0644, "#{config_path}/#{file}"
25
25
  end
26
+
27
+ config_path = "~/.omf/etc"
28
+ unless File.directory?(config_path)
29
+ puts "Generating directory '#{config_path}'."
30
+ FileUtils.mkdir_p(config_path)
31
+ end
32
+
33
+ FileUtils.cp "#{gem_root}/etc/omf_script_conf.yaml", "#{config_path}/omf_script_conf.yaml"
34
+ FileUtils.chmod 0644, "#{config_path}/omf_script_conf.yaml"
26
35
  puts "done."
data/bin/omf6 CHANGED
@@ -4,7 +4,7 @@ require 'time'
4
4
  require 'omf_common'
5
5
  require 'optparse'
6
6
 
7
- @config = YAML.load_file('/etc/nitos_testbed_rc/omf_script_conf.yaml')
7
+ @config = YAML.load_file('~/.omf/etc/omf_script_conf.yaml')
8
8
  # @config = YAML.load_file(File.join(File.dirname(File.expand_path(__FILE__)), '.../etc/omf_script_conf.yaml'))
9
9
  @auth = @config[:auth]
10
10
  @xmpp = @config[:xmpp]
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module NITOS
2
2
  module TestbedRc
3
- VERSION = "1.0.0.pre.1"
3
+ VERSION = "1.0.0.pre.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nitos_testbed_rc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.1
4
+ version: 1.0.0.pre.2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-16 00:00:00.000000000 Z
12
+ date: 2014-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omf_common