Module: GitCloud

Defined in:
lib/git_cloud/git.rb,
lib/git_cloud.rb,
lib/git_cloud/command.rb,
lib/git_cloud/clipboard.rb,
lib/git_cloud/git_exception.rb,
lib/git_cloud/file_exception.rb

Overview

Clipboard is a centralized point to shell out to each individual platform’s clipboard, pasteboard, or whatever they decide to call it.

Defined Under Namespace

Classes: Clipboard, Command, FileException, Git, GitException

Constant Summary collapse

VERSION =
'0.0.2'

Class Method Summary collapse

Class Method Details

.file(path) ⇒ Object

Public: stores the path of the file as its fully extended path

path - String path to the file or folder to push to the cloud

Returns the String fully extended path of the file/folder



34
35
36
# File 'lib/git_cloud.rb', line 34

def self.file(path)
  @file ||= GitCloud::File.new(path)
end

.git(config) ⇒ Object

Public: returns an instance of Git

config - ParseConfig configuration options

Returns nothing.



25
26
27
# File 'lib/git_cloud.rb', line 25

def self.git(config)
  @git ||= GitCloud::Git.new(config)
end