Class: Nova::Remote::Fake

Inherits:
Object
  • Object
show all
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

Instance Method Details

#commandCommands

Returns a command instance. Caches the instance across method calls.

Returns:

See Also:



27
28
29
# File 'lib/nova/remote/fake.rb', line 27

def command
  @_command ||= Commands.new
end

#file_systemFileSystem

Returns a file system instance. Caches the instance across method calls.

Returns:

See Also:



45
46
47
# File 'lib/nova/remote/fake.rb', line 45

def file_system
  @_file_system ||= FileSystem.new
end

#operating_systemOperatingSystem

Returns an operating system instance. Caches the instance across method calls.

Returns:

See Also:



36
37
38
# File 'lib/nova/remote/fake.rb', line 36

def operating_system
  @_operating_system ||= OperatingSystem.new
end

#platformPlatform

Returns a platform instance. Caches the instance across method calls.

Returns:

See Also:



18
19
20
# File 'lib/nova/remote/fake.rb', line 18

def platform
  @_platform ||= Platform.new
end