Module: Prebundle
- Defined in:
- lib/prebundle.rb,
lib/prebundle/cli.rb,
lib/prebundle/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.2.5"
Class Method Summary collapse
Class Method Details
.distribution_class(hint = `lsb_release -sd`) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/prebundle.rb', line 7 def self.distribution_class(hint = `lsb_release -sd`) case hint when /\AUbuntu/; OS::Ubuntu when /\ADebian/; OS::Debian else raise "Unknown distribution" end end |
.list_all_gems_in_Gemfile ⇒ Object
15 16 17 18 19 |
# File 'lib/prebundle.rb', line 15 def self.list_all_gems_in_Gemfile # %w[mysql2 curses] gemfile_lock = File.read('Gemfile.lock') gemfile_lock.scan(/^\s{4}(\S+)/).flatten.uniq end |