Module: Just

Defined in:
lib/just.rb,
lib/just/cli.rb,
lib/just/cli/add.rb,
lib/just/cli/use.rb,
lib/just/version.rb,
lib/just/cli/reset.rb

Defined Under Namespace

Modules: CLI

Constant Summary collapse

VERSION =
"1.1.0"

Class Method Summary collapse

Class Method Details

.aliasesObject



17
18
19
# File 'lib/just.rb', line 17

def self.aliases
  path("aliases")
end

.directoryObject



9
10
11
# File 'lib/just.rb', line 9

def self.directory
  File.expand_path(File.join(ENV['HOME'], ".just"))
end

.git(*paths) ⇒ Object



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

def self.git(*paths)
  File.join(git_url, *paths)
end

.git_urlObject



21
22
23
# File 'lib/just.rb', line 21

def self.git_url
  "https://github.com"
end

.path(*paths) ⇒ Object



13
14
15
# File 'lib/just.rb', line 13

def self.path(*paths)
  File.expand_path(File.join(directory, *paths))
end

.progress_barObject



5
6
7
# File 'lib/just.rb', line 5

def self.progress_bar
   ProgressBar::Outputs::Tty
end