class Gitenv::Action
Attributes
options[R]
Public Class Methods
new(context, type, files, options)
click to toggle source
# File lib/gitenv/actions.rb, line 5 def initialize(context, type, files, options) @context = context @type = type @files = files @options = options end
Public Instance Methods
each(&block)
click to toggle source
# File lib/gitenv/actions.rb, line 12 def each(&block) @files.files(@context.from).each do |f| block.call @type.new(@context, f, @options) end end
each_file(&block)
click to toggle source
# File lib/gitenv/actions.rb, line 18 def each_file(&block) @files.files(@context.from).each do |f| block.call File.join(@context.from, f) end end