Sha256: 275185bcb6daea3b0700f94abcafde14d500fdd1393c5819cc611665bb52b5c8

Contents?: true

Size: 500 Bytes

Versions: 1

Compression:

Stored size: 500 Bytes

Contents

require "platina_world/runners/base"
require 'fileutils'

module PlatinaWorld
  module Runner
    class Production < Base
      private

      def generate_directory(path)
        FileUtils.mkdir_p(path.to_s)
      end

      def generate_file_with_dir(path)
        FileUtils.mkdir_p(path.dirname)
        generate_file(path)
      end

      def generate_file(path)
        FileUtils.touch(path.to_s)
        ::File.write(path.to_s, path.contents) if path.has_contents?
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
platina_world-0.1.5 lib/platina_world/runners/production.rb