Sha256: d86b35f456211dd57c1dde6f634fe5991261863db10f49818ecbf04cf8890d72
Contents?: true
Size: 762 Bytes
Versions: 17
Compression:
Stored size: 762 Bytes
Contents
<% namespace do %> module CLI module Actions # Handles the config action. class Config include <%= configuration.project_class %>::Import[:kernel, :logger] def initialize client: Configuration::Loader::CLIENT, **dependencies super(**dependencies) @client = client end def call selection case selection when :edit then edit when :view then view else logger.error { "Invalid configuration selection: #{selection}." } end end private attr_reader :client def edit = kernel.system("$EDITOR #{client.current}") def view = kernel.system("cat #{client.current}") end end end <% end %>
Version data entries
17 entries across 17 versions & 1 rubygems