Sha256: 13eab6a72e0535ca91d144f63371122d2c5baf2b90150a9ba692cd5d9f56f219

Contents?: true

Size: 620 Bytes

Versions: 2

Compression:

Stored size: 620 Bytes

Contents

require 'thor'
require 'canpe/repository'
require 'canpe/repository_store'
require 'canpe/repository_operation'
require 'canpe/repository_creator'
require 'tilt'
require 'pry'

module Canpe
  class Runner
    class << self
      def generate(repository, options: {})
        operation = RepositoryOperation.new(repository)
        operation.prepare_operation(options)
        repository.file_paths.each { |path| operation.generate_file(path) }
      end

      def create(repository_name)
        repository_creator = RepositoryCreator.new(repository_name)
        repository_creator.execute
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
canpe-0.1.1 lib/canpe/runner.rb
canpe-0.1.0 lib/canpe/runner.rb