lib/job_spec/cli.rb in job_spec-0.2.5 vs lib/job_spec/cli.rb in job_spec-0.3.0
- old
+ new
@@ -11,9 +11,10 @@
role_files(options[:in]).each do |f|
require f
end
FileUtils.mkdir_p(path_relative_to_pwd(options[:out]))
+ JobSpec::Role.add_expectations(JobSpec::AdhocExpectations.roles)
Role.definitions.each do |role|
puts "Saving #{role.name} to #{safe_role_out_path(role)}..."
File.write(safe_role_out_path(role), RenderAsMarkdown.new(role).render)
end
puts 'Finished.'