class Octaccord::Command::CreateIteration
Public Class Methods
new(client, repos, name, **options)
click to toggle source
# File lib/octaccord/command/create_iteration.rb, line 6 def initialize(client, repos, name, **options) if file = options[:template] content = File.open(file).read else content = gets(nil) end template = ERB.new(content, nil, "-") options.delete(:template) # binding itr, repos itr = Octaccord::Iteration.new(client: client, name: name, repository: repos, **options) puts template.result(binding) end