continuent-tools-core 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3485dd49394bfa739fe14dae9d0ab154de7b6a02
4
- data.tar.gz: 1b9e7fc227885fa838b2c5f95e19d9de8f3b5b4c
3
+ metadata.gz: cb63564287e5a09bc6ebb13d6b9ab58716ce0434
4
+ data.tar.gz: cbca28cf7fc89212c561a675ac223bd66e66091c
5
5
  SHA512:
6
- metadata.gz: 4a100a610ce44a93bb242063da4c00c3ee62c51567ff9ceb0a9b1a6b8b9ba7ee615fe47dc442093d4fe92c6189c28375177de3a8e920c61bbe84c446a4f70ada
7
- data.tar.gz: 87861befb8f471944dbf7ee963887be07a77c3e2bc835bfb3103897a49d4a33c79c46d53638739181071aff16cb533f746b15b22fe6015c990fb05eaf58f20d7
6
+ metadata.gz: 7b96760d5f6f5b75f8a8dbc4d7d8410267655ee335306c9b0a2b35081fc3b706b366f308708fff528cef5372290fbda85895b4869039004f92e3e6a648f0f83a
7
+ data.tar.gz: 753f7ced66a4b6f8607e14be3d3832c808a8792747a3d4e66ce6aa975e5768904c77e37e65e3127e8235740e7dc66ae3f80963a562ee42d742fc2e049aac1289
data/README.md CHANGED
@@ -3,7 +3,7 @@ continuent-tools-core
3
3
 
4
4
  The continuent-tools-core is a package of libraries that are found in Tungsten Replicator. When the gem is built, these files are automatically exported from [https://code.google.com/p/tungsten-replicator/](https://code.google.com/p/tungsten-replicator/).
5
5
 
6
- gem install json_pure continuent-tools-core
6
+ gem install continuent-tools-core
7
7
 
8
8
  Script Structure
9
9
  ---
@@ -17,4 +17,25 @@
17
17
 
18
18
  # The tungsten.rb file is exported into the gem from
19
19
  # https://code.google.com/p/tungsten-replicator/
20
- require 'tungsten'
20
+ require 'tungsten'
21
+
22
+ class TungstenUtil
23
+ # A wrapper for running another Tungsten script. This will automatically
24
+ # forward messages to the console and add any TungstenScript options to
25
+ # the command.
26
+ def tungsten_cmd_result(command)
27
+ original_fwd_state = forward_cmd_results?()
28
+ begin
29
+ if TI
30
+ prefix = "export CONTINUENT_ROOT=#{TI.root()}; "
31
+ else
32
+ prefix = ""
33
+ end
34
+
35
+ forward_cmd_results?(true)
36
+ return cmd_result("#{prefix}#{command} #{get_tungsten_command_options()}")
37
+ ensure
38
+ forward_cmd_results?(original_fwd_state)
39
+ end
40
+ end
41
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: continuent-tools-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Continuent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-01 00:00:00.000000000 Z
11
+ date: 2014-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_pure