Sha256: 7674f2d7de473698478d3934afd06d57aa959e5fb9e7e1b037aba8e169c0b18c

Contents?: true

Size: 584 Bytes

Versions: 1

Compression:

Stored size: 584 Bytes

Contents

module Overapp
  module Load
    class Command < Base
      attr_accessor :relative_output_path
      def command; descriptor; end
      def load(base,ops={})
        if relative_output_path.present?
          TmpDir.with do |dir|
            Overapp.ec "cd #{dir} && #{command}", :silent => true
            RawDir.new(:descriptor => "#{dir}/#{relative_output_path}").load(base,ops)
          end
        else
          Overapp.ec "cd #{ops[:path]} && #{command}", :silent => true
          RawDir.new(:descriptor => ops[:path]).load(base,ops)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
overapp-0.4.0 lib/overapp/load/types/command.rb