Class: Craftsman::Package

Inherits:
Object
  • Object
show all
Defined in:
lib/craftsman/package.rb

Overview

you need to implement your own Package class which is extended from “Craftsman::Package”

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ Package

Returns a new instance of Package.



4
5
6
# File 'lib/craftsman/package.rb', line 4

def initialize(id)
  @id = id
end

Instance Method Details

#get(target) ⇒ Object

return: content of target(file)



9
10
11
# File 'lib/craftsman/package.rb', line 9

def get(target)
  raise 'needs to be implemented'
end

#targetsObject

return: string array of targets(files)

in this package


15
16
17
# File 'lib/craftsman/package.rb', line 15

def targets
  raise 'needs to be implemented'
end