Class: BuildTarget

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/build_target.rb

Constant Summary collapse

INCL_BUILD =

REX for recognize a build subpath

/(_|\/|\A)build(_|\/|\Z)/

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/build_target.rb', line 14

def method_missing(name, *args, &block)
	if name.to_s.match(/(\w+)_path$/)
		convert_to_path $1
	else
		super
	end
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



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

def config
  @config
end

#idetagObject

Returns the value of attribute idetag.



2
3
4
# File 'lib/build_target.rb', line 2

def idetag
  @idetag
end

Class Method Details

.inherited(klass) ⇒ Object



9
10
11
12
# File 'lib/build_target.rb', line 9

def self.inherited(klass)
	klass.source_root(ROOT)
	klass.publish
end