class PasswordChanger::Cli::Init

This class provides an ‘presentation init’ command for the middleman CLI.

Public Instance Methods

application() click to toggle source
# File lib/password_changer/cli/init.rb, line 11
def application
  source_paths << File.expand_path('../../../../templates', __FILE__)

  @version = PasswordChanger::VERSION
  @config = PasswordChanger.config

  opts = options.dup.deep_symbolize_keys
  template 'config.yaml.tt', opts.delete(:configuration_file), **opts
end