module SyncWrap::Main

A limited set of (private) methods for use at the top-level in a sync.rb. All of these methods delegate to the current Space.

Private Instance Methods

host( *args ) click to toggle source

Shorthand for space.role

# File lib/syncwrap/main.rb, line 39
def host( *args ) # :doc:
  space.host( *args )
end
options( opts = nil ) click to toggle source

Merge options given, or (without opts) return space.default_options

# File lib/syncwrap/main.rb, line 49
def options( opts = nil ) # :doc:
  if opts
    space.merge_default_options( opts )
  else
    space.default_options
  end
end
profile( *args ) click to toggle source

Shorthand for space.provider.profile

# File lib/syncwrap/main.rb, line 58
def profile( *args ) # :doc:
  space.provider.profile( *args )
end
role( *args ) click to toggle source

Shorthand for space.role

# File lib/syncwrap/main.rb, line 34
def role( *args ) # :doc:
  space.role( *args )
end
space() click to toggle source

The current Space

# File lib/syncwrap/main.rb, line 29
def space # :doc:
  Space.current
end