Class: HaveAPI::Fs::Components::ActionMeta

Inherits:
Directory show all
Defined in:
lib/haveapi/fs/components/action_meta.rb

Constant Summary

Constants included from Help

Help::SEARCH_PATH

Instance Attribute Summary

Attributes inherited from HaveAPI::Fs::Component

#atime, #context, #ctime, #mtime

Instance Method Summary collapse

Methods inherited from Directory

#directory?

Methods included from Help

find!, included

Methods inherited from HaveAPI::Fs::Component

#abspath, #bound=, #bound?, children_reader, component, #directory?, #executable?, #file?, #find, inherited, #invalid?, #invalidate, #parent, #path, #readable?, #reset, #times, #unsaved?, #use, #writable?

Constructor Details

#initialize(action_dir, *args) ⇒ ActionMeta

Returns a new instance of ActionMeta.



5
6
7
8
# File 'lib/haveapi/fs/components/action_meta.rb', line 5

def initialize(action_dir, *args)
  super(*args)
  @action_dir = action_dir
end

Instance Method Details

#contentsObject



17
18
19
# File 'lib/haveapi/fs/components/action_meta.rb', line 17

def contents
  super + %w(output)
end

#output=(data) ⇒ Object



21
22
23
# File 'lib/haveapi/fs/components/action_meta.rb', line 21

def output=(data)
  children[:output].data = data
end

#setupObject



10
11
12
13
14
15
# File 'lib/haveapi/fs/components/action_meta.rb', line 10

def setup
  super
  
  children[:input] = [MetaInput, @action_dir, bound: true]
  children[:output] = [MetaOutput, @action_dir, :global, bound: true]
end

#titleObject



29
30
31
# File 'lib/haveapi/fs/components/action_meta.rb', line 29

def title
  'Input/output global metadata parameters'
end

#valuesObject



25
26
27
# File 'lib/haveapi/fs/components/action_meta.rb', line 25

def values
  children[:input].values
end