Class: EmbulkJavundler::Dsl

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDsl

Returns a new instance of Dsl.



7
8
9
# File 'lib/embulk_javundler/dsl.rb', line 7

def initialize
  @java_plugins = []
end

Instance Attribute Details

#java_pluginsObject (readonly)

Returns the value of attribute java_plugins.



5
6
7
# File 'lib/embulk_javundler/dsl.rb', line 5

def java_plugins
  @java_plugins
end

Instance Method Details

#java_plugin(name, git: nil, github: nil, commit: "master", libdir: nil, classpathdir: nil) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/embulk_javundler/dsl.rb', line 11

def java_plugin(name, git: nil, github: nil, commit: "master", libdir: nil, classpathdir: nil)
  @java_plugins << JavaPlugin.new(
    name: name,
    install_dir: EmbulkJavundler.install_dir.join(name),
    git: git,
    github: github,
    commit: commit,
    libdir: libdir,
    classpathdir: classpathdir
  )
end