lib/rubysmith/cli/processors/config.rb in rubysmith-0.9.1 vs lib/rubysmith/cli/processors/config.rb in rubysmith-0.10.0
- old
+ new
@@ -3,11 +3,11 @@
module Rubysmith
module CLI
module Processors
# Handles the Command Line Interface (CLI) configuration processing.
class Config
- def initialize configuration: CLI::Configuration::CLIENT, kernel: Kernel
+ def initialize configuration: CLI::Configuration::Loader::CLIENT, kernel: Kernel
@configuration = configuration
@kernel = kernel
end
def call action
@@ -20,16 +20,12 @@
private
attr_reader :configuration, :kernel
- def edit
- kernel.system "$EDITOR #{configuration.current}"
- end
+ def edit = kernel.system("$EDITOR #{configuration.current}")
- def view
- kernel.system "cat #{configuration.current}"
- end
+ def view = kernel.system("cat #{configuration.current}")
end
end
end
end