Module: Ruby

Extended by:
Ruby
Included in:
Ruby
Defined in:
lib/scripts/ruby/bundler.rb,
lib/scripts/ruby/rubocop.rb

Instance Method Summary collapse

Instance Method Details

#bundlerObject



3
4
5
6
7
8
9
10
11
# File 'lib/scripts/ruby/bundler.rb', line 3

def bundler
  unless installed?("bundler")
    command("gem", "install", "bundler", "--no-ri", "--no-rdoc")
  end

  unless test_command?("bundler", "check")
    command("bundler", "install")
  end
end

#rubocopObject



3
4
5
6
7
8
9
10
11
# File 'lib/scripts/ruby/rubocop.rb', line 3

def rubocop
  unless installed?("rubocop")
    command("gem", "install", "rubocop")
  end
  # ugh check bundle rubocop as well
  # puts test_command?("bundle exec rubocop")

  command("rubocop")
end