Sha256: ab9376d9e18be7971f68bc2995cf38ebc445d655945a360f31a152d104a9de4f

Contents?: true

Size: 620 Bytes

Versions: 3

Compression:

Stored size: 620 Bytes

Contents

class Step
  def files_dir
    @files_dir ||= begin
                     dir = @path + ".files"
                     if Path === @path
                       @path.annotate(dir)
                     else
                       Path.setup(dir)
                     end
                     dir.pkgdir = self
                     dir
                   end
  end

  def file(file = nil)
    dir = files_dir
    Path.setup(dir) unless Path === dir
    return dir if file.nil?
    dir[file]
  end

  def bundle_files
    [path, info_file, Dir.glob(File.join(files_dir,"**/*"))].flatten.select{|f| Open.exist?(f) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scout-gear-10.4.0 lib/scout/workflow/step/file.rb
scout-gear-10.3.0 lib/scout/workflow/step/file.rb
scout-gear-10.2.0 lib/scout/workflow/step/file.rb