Sha256: de50d8cbb59c40c778b9a9c2a62be93ee02c3920ed21ea4ac1a3ac6650c52f0a

Contents?: true

Size: 729 Bytes

Versions: 2

Compression:

Stored size: 729 Bytes

Contents

#!/usr/bin/env ruby

puts "Installing Solargraph gem..."
`gem install solargraph`

puts "Installing documentation. This might take a while..."
`solargraph download-core`
`yard gems`
`solargraph bundle`

unless File.exist?('.solargraph.yml')
  puts "Copying .solargraph.yml..."
  `curl -s https://gist.githubusercontent.com/cmer/024991c85c4de01dab17632b2dc7f064/raw > .solargraph.yml`
else
  puts "Skipped copying .solargraph.yml. Already exists."
end

unless File.exist?('config/definitions.rb')
  puts "Copying definitions.rb..."
  `curl -s https://gist.githubusercontent.com/castwide/28b349566a223dfb439a337aea29713e/raw > config/definitions.rb`
else
  puts "Skipped copying .definitions.rb. Already exists."
end

puts "Done!"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solargraph-rails-init-0.1.1 exe/solargraph-rails-init
solargraph-rails-init-0.1.0 exe/solargraph-rails-init