Class: Spud::BuildTools::Rule

Inherits:
BuildRule show all
Defined in:
lib/build_tools/make/make.rb

Instance Method Summary collapse

Methods inherited from BuildRule

#keyword_params, #positional_params

Constructor Details

#initialize(name) ⇒ Rule

Returns a new instance of Rule.



21
22
23
# File 'lib/build_tools/make/make.rb', line 21

def initialize(name)
  @name = name
end

Instance Method Details

#filenameObject



29
30
31
# File 'lib/build_tools/make/make.rb', line 29

def filename
  'Makefile'
end

#invoke(*args, **kwargs) ⇒ Object



25
26
27
# File 'lib/build_tools/make/make.rb', line 25

def invoke(*args, **kwargs)
  system('make', @name, *args)
end