Class: Ufo::Param
Instance Method Summary collapse
- #data ⇒ Object
- #helper ⇒ Object
-
#initialize ⇒ Param
constructor
A new instance of Param.
-
#upgrade_message! ⇒ Object
Ufo version 3.3 to 3.4 added a concept of a .ufo/params.yml file to support fargate: github.com/tongueroo/ufo/pull/31.
Constructor Details
Instance Method Details
#data ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/ufo/param.rb', line 17 def data vars = Ufo::TemplateScope.new(helper).assign_instance_variables result = RenderMePretty.result(@params_path, vars) YAML.load(result) end |
#helper ⇒ Object
12 13 14 15 |
# File 'lib/ufo/param.rb', line 12 def helper dsl = DSL.new("#{Ufo.root}/.ufo/task_definitions.rb", quiet: true, mute: true) dsl.helper end |
#upgrade_message! ⇒ Object
Ufo version 3.3 to 3.4 added a concept of a .ufo/params.yml file to support fargate: github.com/tongueroo/ufo/pull/31
Warn user and tell them to run the ‘ufo upgrade3_3_to_3_4` command to upgrade.
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/ufo/param.rb', line 30 def return if File.exist?(@params_path) puts "ERROR: Your project is missing the .ufo/params.yml.".colorize(:red) puts "This was added in ufo version 3.4 for Fargate support: https://github.com/tongueroo/ufo/pull/31" puts "You can find more info about the params file here: http://ufoships.com/docs/params/" puts "To upgrade run:" puts " ufo upgrade3_3_to_3_4" exit 1 end |