mandy 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/mandy-hadoop +2 -2
- data/bin/mandy-local +2 -2
- data/bin/mandy-run +2 -3
- metadata +1 -1
data/bin/mandy-hadoop
CHANGED
@@ -5,8 +5,6 @@ require 'optparse'
|
|
5
5
|
require 'ostruct'
|
6
6
|
require 'cgi'
|
7
7
|
|
8
|
-
exec('mandy-hadoop -h') unless ARGV.size >= 3
|
9
|
-
|
10
8
|
options = OpenStruct.new
|
11
9
|
|
12
10
|
OptionParser.new do |opts|
|
@@ -38,6 +36,8 @@ OptionParser.new do |opts|
|
|
38
36
|
end
|
39
37
|
end.parse!
|
40
38
|
|
39
|
+
exec('mandy-hadoop -h') unless ARGV.size >= 3
|
40
|
+
|
41
41
|
def absolute_path(path)
|
42
42
|
path =~ /^\// ? path : File.join(Dir.pwd, path)
|
43
43
|
end
|
data/bin/mandy-local
CHANGED
@@ -3,8 +3,6 @@ require 'optparse'
|
|
3
3
|
require 'ostruct'
|
4
4
|
require 'cgi'
|
5
5
|
|
6
|
-
exec('mandy-local -h') unless ARGV.size >= 3
|
7
|
-
|
8
6
|
options = OpenStruct.new
|
9
7
|
|
10
8
|
OptionParser.new do |opts|
|
@@ -24,6 +22,8 @@ OptionParser.new do |opts|
|
|
24
22
|
end
|
25
23
|
end.parse!
|
26
24
|
|
25
|
+
exec('mandy-local -h') unless ARGV.size >= 3
|
26
|
+
|
27
27
|
require "fileutils"
|
28
28
|
|
29
29
|
def absolute_path(path)
|
data/bin/mandy-run
CHANGED
@@ -5,9 +5,6 @@ require 'optparse'
|
|
5
5
|
require 'ostruct'
|
6
6
|
require 'json'
|
7
7
|
|
8
|
-
exec('mandy-local -h') unless ARGV.size >= 2
|
9
|
-
|
10
|
-
|
11
8
|
options = OpenStruct.new
|
12
9
|
|
13
10
|
OptionParser.new do |opts|
|
@@ -39,6 +36,8 @@ OptionParser.new do |opts|
|
|
39
36
|
end
|
40
37
|
end.parse!
|
41
38
|
|
39
|
+
exec('mandy-local -h') unless ARGV.size >= 2
|
40
|
+
|
42
41
|
file = ARGV[0]
|
43
42
|
input = File.new(ARGV[1])
|
44
43
|
|