Class: Daiku::Plugin

Inherits:
Object show all
Defined in:
lib/daiku/plugin.rb

Class Method Summary collapse

Class Method Details

.cliObject



18
19
20
# File 'lib/daiku/plugin.rb', line 18

def self.cli
  meta[:class]::CLI
end

.cli_pathObject



22
23
24
# File 'lib/daiku/plugin.rb', line 22

def self.cli_path
  File.expand_path('../', __FILE__)
end

.metaObject



13
14
15
16
# File 'lib/daiku/plugin.rb', line 13

def self.meta
  @meta = { class: Kernel.const_get(self.name) } if @meta.nil?
  @meta
end

.plugin_name(name) ⇒ Object



5
6
7
# File 'lib/daiku/plugin.rb', line 5

def self.plugin_name(name)
  meta[:name] = name
end

.plugin_type(type) ⇒ Object



9
10
11
# File 'lib/daiku/plugin.rb', line 9

def self.plugin_type(type)
  meta[:type] = type
end