lib/faastruby/cli/commands/project/deploy.rb in faastruby-0.5.15 vs lib/faastruby/cli/commands/project/deploy.rb in faastruby-0.5.16
- old
+ new
@@ -16,11 +16,11 @@
@mutex = Mutex.new
@failed = {}
@options['functions'] += find_functions unless @options['functions'].any?
@options['environment'] ||= 'stage'
@project_yaml = YAML.load(File.read(PROJECT_YAML_FILE))['project'] rescue FaaStRuby::CLI.error("Could not find file 'project.yml'. Are you running this command from the project's folder?")
- @project_secrets = YAML.load(File.read(PROJECT_SECRETS_FILE)) rescue {secrets: {}}
+ @project_secrets = YAML.load(File.read(PROJECT_SECRETS_FILE))['secrets'] rescue {secrets: {}}
@project_name = @project_yaml['name']
@root_to = @project_yaml['root_to'] || 'root'
@catch_all = @project_yaml['catch_all'] || 'catch-all'
@project_identifier = "-#{@project_yaml['identifier']}" if @project_yaml['identifier']
@workspace = "#{@project_name}-#{@options['environment']}#{@project_identifier}"
@@ -122,10 +122,10 @@
puts "Usage: faastruby #{self.class.help}"
puts %(
-f,--function FUNCTION_PATH # Specify the path to the function directory in your local machine.
# This argument can be repeated many times for multiple functions. Example:
# -f path/to/function1 -f path/to/function2
--e,--env ENVIRONMENT # ENVIRONMENT is added to the project name to compose the workspace name.
+-e,--env ENVIRONMENT # ENVIRONMENT is added to the project's name to compose the workspace name.
)
end
def parse_options
@options = {'functions' => []}