Module: Wavesync::Commands
- Defined in:
- lib/wavesync/commands.rb,
lib/wavesync/commands/set.rb,
lib/wavesync/commands/help.rb,
lib/wavesync/commands/sync.rb,
lib/wavesync/commands/analyze.rb,
lib/wavesync/commands/command.rb
Defined Under Namespace
Classes: Analyze, Command, Help, Option, Set, Subcommand, Sync
Constant Summary collapse
- CONFIG_OPTION =
Option.new(short: '-c', long: '--config PATH', description: 'Path to wavesync config YAML file')
- GLOBAL_OPTIONS =
[CONFIG_OPTION].freeze
- ALL =
[Sync, Analyze, Set, Help].freeze
Class Method Summary collapse
-
.load_config(path) ⇒ Object
: (String path) -> Config.
Class Method Details
.load_config(path) ⇒ Object
: (String path) -> Config
13 14 15 16 17 18 |
# File 'lib/wavesync/commands.rb', line 13 def self.load_config(path) Wavesync::Config.load(path) rescue Wavesync::ConfigError => e puts "Configuration error: #{e.}" exit 1 end |