prick 0.40.0 → 0.40.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prick/builder/node.rb +0 -23
- data/lib/prick/builder/parser.rb +0 -3
- data/lib/prick/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bed31b32457d15c5393b4b3edfdb2f338e069b058fde44f5fb32677161c6ae08
|
4
|
+
data.tar.gz: 0d5a5310477c17b1ef31ff8124b190ea9625fec2e54637f53c8988af229f29ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5434d7ba61b03b67756e8ec89dbf2eeec58f17cc87d1f14fe8f7787bf6d448ef8cd3c2bb3ac2df9464ba86128b12ed3d824f1286a36b5d3284043779286b84dc
|
7
|
+
data.tar.gz: 8c99d17d014c9e8de628f043ede068c260188af26975da2a136882d84171a862dddd3defdacf697839b723d75c0ae7ca569f0b26323e4063aac7ed2ea222d598
|
data/lib/prick/builder/node.rb
CHANGED
@@ -216,29 +216,6 @@ module Prick
|
|
216
216
|
alias_method :execute, :execute_system
|
217
217
|
end
|
218
218
|
|
219
|
-
class RequireNode < ExecutableNode
|
220
|
-
def read_source
|
221
|
-
sql = execute_command
|
222
|
-
@source_lines = 1 + 1 + sql.count("\n")
|
223
|
-
["set search_path to #{schema}, pg_temp", sql.join("\n")]
|
224
|
-
end
|
225
|
-
|
226
|
-
def execute_command
|
227
|
-
execute {
|
228
|
-
Command.inline(Prick.state.bash_environment, path, argv: args)
|
229
|
-
}
|
230
|
-
end
|
231
|
-
end
|
232
|
-
|
233
|
-
class CommandNode < ExecutableNode
|
234
|
-
protected
|
235
|
-
def execute_command
|
236
|
-
execute {
|
237
|
-
Command.command(Prick.state.bash_environment, command)
|
238
|
-
}
|
239
|
-
end
|
240
|
-
end
|
241
|
-
|
242
219
|
# EvalNode executes the command and feeds the output into the database
|
243
220
|
class SysEvalNode < SystemCommandNode
|
244
221
|
alias_method :read_source, :read_cmd
|
data/lib/prick/builder/parser.rb
CHANGED
@@ -130,9 +130,6 @@ module Prick
|
|
130
130
|
command = args.shift
|
131
131
|
klass && command or raise "Illegal number of arguments: #{value}"
|
132
132
|
ModuleNode.new(unit, phase, path, klass, command, args)
|
133
|
-
when "require"
|
134
|
-
(path, args = parse_file_entry(unit, dir, value)) or return nil
|
135
|
-
RequireNode.new(unit, phase, path, args)
|
136
133
|
when "eval"
|
137
134
|
(path, args = parse_file_entry(unit, dir, value)) or return nil
|
138
135
|
EvalNode.new(unit, phase, path, args)
|
data/lib/prick/version.rb
CHANGED