Sha256: cc13d288cf4c54a6a97fd84632bb076042caa138666a28e77d38fd0cbff1389b

Contents?: true

Size: 311 Bytes

Versions: 3

Compression:

Stored size: 311 Bytes

Contents

module Overapp
  class FromCommand
    include FromHash
    attr_accessor :command, :path

    fattr(:files) do
      Overapp.with_tmp_dir do |dir|
        Overapp.ec command, :silent => true
        Files.load [dir,path].select { |x| x.present? }.join("/"), :file_class => BasicFile
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
overapp-0.4.2 lib/overapp/from_command.rb
overapp-0.4.1 lib/overapp/from_command.rb
overapp-0.4.0 lib/overapp/from_command.rb