rbatch 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.ja.md CHANGED
@@ -127,13 +127,13 @@ array:
127
127
  スクリプト : ${RB_HOME}/bin/sample2.rb
128
128
  ```
129
129
  require 'rbatch'
130
- p RBatch::config
130
+ p RBatch.config
131
131
  => {"key" => "value", "array" => ["item1", "item2", "item3"]}
132
- p RBatch::config["key"]
132
+ p RBatch.config["key"]
133
133
  => "value"
134
134
 
135
135
  # もしキーが存在しない場合は自動的に例外が発生します
136
- p RBatch::config["not_exist"]
136
+ p RBatch.config["not_exist"]
137
137
  => Raise Exception
138
138
  ```
139
139
 
@@ -148,7 +148,7 @@ RBatchは外部コマンド(たとえば"ls -l")を実行するラッパー
148
148
  サンプル
149
149
  ```
150
150
  require 'rbatch'
151
- r = RBatch::cmd("ls")
151
+ r = RBatch.cmd("ls")
152
152
  p r.stdout
153
153
  => "fileA\nfileB\n"
154
154
  p r.stderr
data/README.md CHANGED
@@ -123,13 +123,13 @@ config : `${RB_HOME}/conf/sample2.yaml`
123
123
  script : `${RB_HOME}/bin/sample2.rb`
124
124
 
125
125
  require 'rbatch'
126
- p RBatch::config
126
+ p RBatch.config
127
127
  => {"key" => "value", "array" => ["item1", "item2", "item3"]}
128
- p RBatch::config["key"]
128
+ p RBatch.config["key"]
129
129
  => "value"
130
130
 
131
131
  # If key does not exist , raise exception
132
- p RBatch::config["not_exist"]
132
+ p RBatch.config["not_exist"]
133
133
  => Raise Exception
134
134
 
135
135
 
@@ -145,7 +145,7 @@ This function return a result object which contain command's "STDOUT", "STDERR"
145
145
  sample
146
146
 
147
147
  require 'rbatch'
148
- r = RBatch::cmd("ls")
148
+ r = RBatch.cmd("ls")
149
149
  p r.stdout
150
150
  => "fileA\nfileB\n"
151
151
  p r.stderr
@@ -22,9 +22,9 @@ module RBatch
22
22
  @journal.put 1, "Load Run-Conf: \"#{@vars[:run_conf_path]}\""
23
23
  @journal.put 2, "RBatch Variables : #{@vars.inspect}"
24
24
  @common_config = RBatch::Config.new(@vars[:common_config_path])
25
- @journal.put 1, "Load Config : \"#{@vars[:common_config_path]}\"" if ! @common_config.nil?
25
+ @journal.put 1, "Load Config : \"#{@vars[:common_config_path]}\"" if @common_config.exist?
26
26
  @config = RBatch::Config.new(@vars[:config_path])
27
- @journal.put 1, "Load Config : \"#{@vars[:config_path]}\"" if ! @config.nil?
27
+ @journal.put 1, "Load Config : \"#{@vars[:config_path]}\"" if @config.exist?
28
28
 
29
29
  # double_run_check
30
30
  if ( @vars[:forbid_double_run])
@@ -1,3 +1,3 @@
1
1
  module RBatch
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rbatch
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.1.2
5
+ version: 2.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - fetaro
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2014-01-15 00:00:00 Z
13
+ date: 2014-01-16 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: RBatch has many fanctions to help with your making a batch script such as "data backup script" or "proccess starting script".