Class: Blobsterix::Transformations::Transformation

Inherits:
Object
  • Object
show all
Includes:
Logable
Defined in:
lib/blobsterix/transformation/transformation.rb

Instance Method Summary collapse

Methods included from Logable

#logger, #logger=

Instance Method Details

#input_typeObject



17
18
19
# File 'lib/blobsterix/transformation/transformation.rb', line 17

def input_type
  Blobsterix::AcceptType.new
end

#is_format?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/blobsterix/transformation/transformation.rb', line 13

def is_format?
  false
end

#nameObject



5
6
7
# File 'lib/blobsterix/transformation/transformation.rb', line 5

def name
  ""
end

#output_typeObject



21
22
23
# File 'lib/blobsterix/transformation/transformation.rb', line 21

def output_type
  Blobsterix::AcceptType.new
end

#to_sObject



9
10
11
# File 'lib/blobsterix/transformation/transformation.rb', line 9

def to_s
  name
end

#transform(input_path, target_path, value) ⇒ Object



25
26
27
28
# File 'lib/blobsterix/transformation/transformation.rb', line 25

def transform(input_path, target_path, value)
  logger.debug "run transformation!!!!!"
  system("cp #{input_path} #{target_path}")
end