Sha256: 2b602e917e4be104ee09e86baff3a0dc7f0d6a79993a6ec184d0bdc9a0800d79

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

# frozen_string_literal: true

require_relative 'figaro_yaml_helper'

namespace :figaro_yml do
  include FigaroYmlHelper

  task :sort_local do
    run_locally do
      info 'Sorting local application.yml...'
      local = local_yaml
      sorted_local = sort_with_nested(local)
      write_combined_yaml(sorted_local)
    end
  end

  task :sort do
    invoke 'figaro_yml:sort_local'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-ops-0.2.14 lib/capistrano/ops/capistrano/v3/tasks/figaro_yml/sort_local.rake