Class: Constancy
- Inherits:
-
Object
show all
- Defined in:
- lib/constancy/config.rb,
lib/constancy.rb,
lib/constancy/cli.rb,
lib/constancy/version.rb,
lib/constancy/sync_target.rb,
lib/constancy/cli/push_command.rb,
lib/constancy/cli/check_command.rb,
lib/constancy/cli/config_command.rb
Overview
This software is public domain. No rights are reserved. See LICENSE for more information.
Defined Under Namespace
Classes: CLI, Config, ConfigFileInvalid, ConfigFileNotFound, SyncTarget, Util
Constant Summary
collapse
- VERSION =
"0.1.1"
- @@config =
nil
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
14
15
16
|
# File 'lib/constancy.rb', line 14
def config
@@config ||= Constancy::Config.new
end
|
18
19
20
|
# File 'lib/constancy.rb', line 18
def configure(path: nil, targets: nil)
@@config = Constancy::Config.new(path: path, targets: targets)
end
|
22
23
24
|
# File 'lib/constancy.rb', line 22
def configured?
not @@config.nil?
end
|