Sha256: fa5ef53cc32a5950b2f8cd146cb52af4b99ac11c32bb720370cd9361a0cac749

Contents?: true

Size: 419 Bytes

Versions: 5

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

namespace :figaro_yml do
  include Capistrano::Ops::FigaroYml::Paths
  include Capistrano::Ops::FigaroYml::Helpers
  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

5 entries across 5 versions & 1 rubygems

Version Path
capistrano-ops-1.0.4 lib/capistrano/ops/figaro_yml/tasks/sort_local.rake
capistrano-ops-1.0.3 lib/capistrano/ops/figaro_yml/tasks/sort_local.rake
capistrano-ops-1.0.2 lib/capistrano/ops/figaro_yml/tasks/sort_local.rake
capistrano-ops-1.0.1 lib/capistrano/ops/figaro_yml/tasks/sort_local.rake
capistrano-ops-1.0.0 lib/capistrano/ops/figaro_yml/tasks/sort_local.rake