Module: EySecrets::CompositeCommandBuilder

Included in:
Update
Defined in:
lib/ey_secrets/composite_command_builder.rb

Instance Method Summary collapse

Instance Method Details

#action(action) ⇒ Object



3
4
5
# File 'lib/ey_secrets/composite_command_builder.rb', line 3

def action(action)
  @actions << action
end

#commandsObject



7
8
9
10
11
# File 'lib/ey_secrets/composite_command_builder.rb', line 7

def commands
  @actions = []
  build
  @actions.map(&:commands).flatten
end