lib/codebuild/stack.rb in codebuild-0.3.0 vs lib/codebuild/stack.rb in codebuild-0.4.0

- old
+ new

@@ -29,12 +29,15 @@ end project = project_builder.run @template["Resources"].merge!(project) if project["CodeBuild"]["Properties"]["ServiceRole"] == {"Ref"=>"IamRole"} - role = Role.new(@options).run + role = Role.new(options).run @template["Resources"].merge!(role) end + + schedule = Schedule.new(options).run + @template["Resources"].merge!(schedule) if schedule template_path = "/tmp/codebuild.yml" FileUtils.mkdir_p(File.dirname(template_path)) IO.write(template_path, YAML.dump(@template)) puts "Generated CloudFormation template at #{template_path.color(:green)}"