Module: BrewGem

Defined in:
lib/brewgem.rb,
lib/brewgem/cli.rb,
lib/brewgem/version.rb

Defined Under Namespace

Classes: Cli

Constant Summary collapse

VERSION =
"0.0.8"

Class Method Summary collapse

Class Method Details

.install(options) ⇒ Object



6
7
8
# File 'lib/brewgem.rb', line 6

def install(options)
  perform(:install, options)
end

.require_all_under(dir, recursive: true) ⇒ Object



18
19
20
21
22
23
# File 'lib/brewgem.rb', line 18

def require_all_under(dir, recursive: true)
  glob_path = File.join("#{dir}", recursive ? '**' : '', '*')
  Dir.glob(glob_path) do |file_path|
    require file_path if File.file?(file_path)
  end
end

.uninstall(options) ⇒ Object



14
15
16
# File 'lib/brewgem.rb', line 14

def uninstall(options)
  perform(:uninstall, options)
end

.update(options) ⇒ Object



10
11
12
# File 'lib/brewgem.rb', line 10

def update(options)
  perform(:update, options)
end