25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# File 'lib/sparkle_appcast/cli.rb', line 25
def appcast(file)
params = {
channel_title: options[:channel_title],
channel_description: options[:channel_description]
}
params[:title] = options[:title] if options[:title]
params[:publish_date] = Time.parse(options[:publish_date]) if options[:publish_date]
appcast = Appcast.new(
Archive.new(file),
Signer.new(options[:key]),
options[:url],
ReleaseNote.new(options[:release_note]),
params
)
= appcast..to_s
if options[:output]
File.open(options[:output], "w") do |output|
output.puts()
end
else
STDOUT.puts()
end
end
|