class Coppy::Runner
Attributes
source[R]
target[R]
Public Class Methods
new(source, target)
click to toggle source
# File lib/coppy/runner.rb, line 6 def initialize(source, target) @source = source @target = target end
Public Instance Methods
call()
click to toggle source
# File lib/coppy/runner.rb, line 11 def call manifesto = load_manifesto env = Environment.new( source: source, target: target, app_name: Name.new(target.split(File::Separator).last) ) manifesto.execute!(env) end
Private Instance Methods
load_manifesto()
click to toggle source
# File lib/coppy/runner.rb, line 25 def load_manifesto manifesto_source = File.join(source, '.coppy') Manifesto.load(Coppy.dsl) { instance_eval File.read(manifesto_source) } end