lib/project/runner.rb in project-0.9.3 vs lib/project/runner.rb in project-1.0.0

- old
+ new

@@ -1,9 +1,9 @@ module Project class Runner attr_accessor :key, :project, :workflow - + def initialize(key) exit_with "No project key given" if key.nil? self.key = key.chomp.to_sym Loader.new.load! @@ -17,10 +17,10 @@ def run! say "* Opening project '#{self.key}' using workflow '#{self.project.workflow}'" self.workflow.each_with_index do |command, index| - command = Template.new(command, self.project).parse + command = Template.new(command, self.project).parse! output = %x[ #{command} ].chomp unless output.empty? say output seperator unless index == (self.workflow.size - 1)