lib/flow/cli/cmd_manager.rb in flow-cli-0.0.5 vs lib/flow/cli/cmd_manager.rb in flow-cli-0.0.6
- old
+ new
@@ -24,10 +24,14 @@
str = YamlBuilders::FlowYamlBuilder.init_yaml_builder(config).build_yaml
raise YamlError, "存在 #{FLOW_YML_NAME}, 删除后才能重新生成" if File.file?(FLOW_YML_NAME)
File.open(FLOW_YML_NAME, "wb") do |file|
file.write(str)
end
+ @cmd_helper.echo str
@cmd_helper.puts_warning "yaml created...\n#{str}"
+ @cmd_helper.puts_warning "*" * 20
+ @cmd_helper.puts_warning " run 'mv flow.yml .flow.yml && git add .flow.yml' if you know WHAT IS '.flow.yml' "
+ @cmd_helper.puts_warning "*" * 20
end
desc "run_build_script", "run flow yml build script"
def run_build_script
show_build_script