Class: CloudCompose::Cli::Print
- Inherits:
-
Object
- Object
- CloudCompose::Cli::Print
- Defined in:
- lib/cloud_compose/cli/print.rb
Class Method Summary collapse
Class Method Details
.call(args) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/cloud_compose/cli/print.rb', line 7 def call(args) input_file = args.shift if input_file.nil? raise ArgumentError, 'Missing input path `cloud-compose print <input-path>`' end template_path = File.(input_file) template = CloudCompose::Template.new(template_path, File.('.')) STDOUT.puts(template.to_s) end |