Class: EmbulkJavundler::Dsl
- Inherits:
-
Object
- Object
- EmbulkJavundler::Dsl
- Defined in:
- lib/embulk_javundler/dsl.rb
Instance Attribute Summary collapse
-
#java_plugins ⇒ Object
readonly
Returns the value of attribute java_plugins.
Instance Method Summary collapse
-
#initialize ⇒ Dsl
constructor
A new instance of Dsl.
- #java_plugin(name, git: nil, github: nil, commit: "master", libdir: nil, classpathdir: nil) ⇒ Object
Constructor Details
#initialize ⇒ Dsl
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_plugins ⇒ Object (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 |