Class: Roast::Resources::NoneResource

Inherits:
BaseResource show all
Defined in:
lib/roast/resources/none_resource.rb

Overview

Resource implementation for workflows with no target (targetless workflows)

Instance Attribute Summary

Attributes inherited from BaseResource

#target

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from Roast::Resources::BaseResource

Instance Method Details

#contentsObject



16
17
18
# File 'lib/roast/resources/none_resource.rb', line 16

def contents
  nil
end

#exists?Boolean

Returns:

  • (Boolean)


11
12
13
14
# File 'lib/roast/resources/none_resource.rb', line 11

def exists?
  # There's no target to check, so this is always true
  true
end

#nameObject



20
21
22
# File 'lib/roast/resources/none_resource.rb', line 20

def name
  "Targetless Resource"
end

#processObject



7
8
9
# File 'lib/roast/resources/none_resource.rb', line 7

def process
  nil
end

#typeObject



24
25
26
# File 'lib/roast/resources/none_resource.rb', line 24

def type
  :none
end