Class: Nova::Remote::Fake
- Inherits:
-
Object
- Object
- Nova::Remote::Fake
- Defined in:
- lib/nova/remote/fake.rb,
lib/nova/remote/fake/commands.rb,
lib/nova/remote/fake/platform.rb,
lib/nova/remote/fake/file_system.rb,
lib/nova/remote/fake/operating_system.rb
Overview
This is a fake remote. It does nothing. Really. You can trust me.
Defined Under Namespace
Classes: Commands, FileSystem, OperatingSystem, Platform
Instance Method Summary collapse
-
#command ⇒ Commands
Returns a command instance.
-
#file_system ⇒ FileSystem
Returns a file system instance.
-
#operating_system ⇒ OperatingSystem
Returns an operating system instance.
-
#platform ⇒ Platform
Returns a platform instance.
Instance Method Details
#command ⇒ Commands
Returns a command instance. Caches the instance across method calls.
27 28 29 |
# File 'lib/nova/remote/fake.rb', line 27 def command @_command ||= Commands.new end |
#file_system ⇒ FileSystem
Returns a file system instance. Caches the instance across method calls.
45 46 47 |
# File 'lib/nova/remote/fake.rb', line 45 def file_system @_file_system ||= FileSystem.new end |
#operating_system ⇒ OperatingSystem
Returns an operating system instance. Caches the instance across method calls.
36 37 38 |
# File 'lib/nova/remote/fake.rb', line 36 def ||= .new end |
#platform ⇒ Platform
Returns a platform instance. Caches the instance across method calls.
18 19 20 |
# File 'lib/nova/remote/fake.rb', line 18 def platform @_platform ||= Platform.new end |