Module: DoSnapshot
- Defined in:
- lib/do_snapshot.rb,
lib/do_snapshot/cli.rb,
lib/do_snapshot/log.rb,
lib/do_snapshot/mail.rb,
lib/do_snapshot/rspec.rb,
lib/do_snapshot/runner.rb,
lib/do_snapshot/adapter.rb,
lib/do_snapshot/command.rb,
lib/do_snapshot/helpers.rb,
lib/do_snapshot/version.rb,
lib/do_snapshot/distribution.rb,
lib/do_snapshot/configuration.rb,
lib/do_snapshot/rspec/adapter.rb,
lib/do_snapshot/adapter/abstract.rb,
lib/do_snapshot/rspec/api_helpers.rb,
lib/do_snapshot/rspec/environment.rb,
lib/do_snapshot/rspec/uri_helpers.rb,
lib/do_snapshot/adapter/droplet_kit.rb,
lib/do_snapshot/rspec/api_v2_helpers.rb
Overview
Current version
Defined Under Namespace
Modules: Adapter, Distribution, Helpers, RSpec Classes: CLI, Command, Configuration, DropletFindError, DropletListError, DropletPowerError, DropletShutdownError, EventError, Log, Mail, NoKeysError, NoProtocolError, NoTokenError, RequestActionError, RequestError, Runner, SnapshotCleanupError, SnapshotCreateError
Constant Summary collapse
- VERSION =
'1.0.2'
Class Attribute Summary collapse
-
.logger ⇒ Object
Returns the value of attribute logger.
-
.mailer ⇒ Object
Returns the value of attribute mailer.
Class Method Summary collapse
- .cleanup ⇒ Object
- .config ⇒ Object
- .configure {|config| ... } ⇒ Object
- .reconfigure {|config| ... } ⇒ Object
Class Attribute Details
.logger ⇒ Object
Returns the value of attribute logger.
10 11 12 |
# File 'lib/do_snapshot.rb', line 10 def logger @logger end |
.mailer ⇒ Object
Returns the value of attribute mailer.
10 11 12 |
# File 'lib/do_snapshot.rb', line 10 def mailer @mailer end |
Class Method Details
.cleanup ⇒ Object
25 26 27 28 29 30 |
# File 'lib/do_snapshot.rb', line 25 def cleanup logger.close if logger @logger = nil @mailer = nil @config = nil end |
.config ⇒ Object
21 22 23 |
# File 'lib/do_snapshot.rb', line 21 def config @config ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
12 13 14 |
# File 'lib/do_snapshot.rb', line 12 def configure yield(config) end |
.reconfigure {|config| ... } ⇒ Object
16 17 18 19 |
# File 'lib/do_snapshot.rb', line 16 def reconfigure @config = Configuration.new yield(config) end |