Class: DevSystem::GemShell

Inherits:
Shell show all
Defined in:
lib/dev_system/sub/shell/shells/gem_shell.rb

Instance Method Summary collapse

Methods inherited from Shell

cruby?, engine, jruby?, linux?, mac?, os, ruby_version, unix?, windows?

Methods inherited from Liza::Controller

color, inherited, on_connected

Methods inherited from Liza::Unit

const_missing, division, part, system, #system, test_class

Instance Method Details

#gemfile_pathObject



13
14
15
# File 'lib/dev_system/sub/shell/shells/gem_shell.rb', line 13

def gemfile_path
  Pathname ENV["BUNDLE_GEMFILE"]
end

#gemfile_writable?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/dev_system/sub/shell/shells/gem_shell.rb', line 17

def gemfile_writable?
  gemfile_path.to_s.start_with? App.root.to_s
end

#gemspecObject



5
6
7
# File 'lib/dev_system/sub/shell/shells/gem_shell.rb', line 5

def gemspec
  Gem::Specification.load "lizarb.gemspec"
end

#gemspecsObject



9
10
11
# File 'lib/dev_system/sub/shell/shells/gem_shell.rb', line 9

def gemspecs
  Dir["*.gemspec"].map { _1.split("/").last.split(".").first }
end