Class: Jack::Config::Sort

Inherits:
Transmit show all
Includes:
Util
Defined in:
lib/jack/config/sort.rb

Overview

for the local_config_path method

Instance Attribute Summary

Attributes inherited from Transmit

#local_config_path

Instance Method Summary collapse

Methods included from Util

#app_name_convention, #aws_bin, #check_aws_setup, #confirm, #eb, #eb_base_flags, #eb_bin, #ensure_folder_exist, #get_answer, #get_region, #prerequisites, #settings, #sh

Methods inherited from Transmit

#extract_name, #timestamp

Constructor Details

#initialize(options = {}) ⇒ Sort

Returns a new instance of Sort.



8
9
10
11
# File 'lib/jack/config/sort.rb', line 8

def initialize(options={})
  super
  @options = options
end

Instance Method Details

#runObject



13
14
15
16
# File 'lib/jack/config/sort.rb', line 13

def run
  YamlFormatter.new.process("#{@root}/#{local_config_path}")
  UI.say "Reformatted the local config to a sorted yaml format at #{local_config_path}"
end