Class: EmbulkJavundler::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/embulk_javundler/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(java_plugins) ⇒ Runner

Returns a new instance of Runner.



3
4
5
# File 'lib/embulk_javundler/runner.rb', line 3

def initialize(java_plugins)
  @java_plugins = java_plugins
end

Instance Method Details

#guess(*args) ⇒ Object



19
20
21
22
23
# File 'lib/embulk_javundler/runner.rb', line 19

def guess(*args)
  Bundler.with_clean_env do
    system("embulk", "guess", *load_paths, *args)
  end
end

#preview(*args) ⇒ Object



7
8
9
10
11
# File 'lib/embulk_javundler/runner.rb', line 7

def preview(*args)
  Bundler.with_clean_env do
    system("embulk", "preview", *load_paths, *args)
  end
end

#run(*args) ⇒ Object



13
14
15
16
17
# File 'lib/embulk_javundler/runner.rb', line 13

def run(*args)
  Bundler.with_clean_env do
    system("embulk", "run", *load_paths, *args)
  end
end