Commit f2951b38 authored by Ben Hale's avatar Ben Hale Committed by Dave Syer

Ruby indentation conventions

By convention, Ruby code is indented using two spaces (  ) per-level.
The code used tabs (\t) previously and therefore wasn't idiomatic.
This change updates the indenting to use two spaces.
parent a3c398ca
require 'formula' require 'formula'
class Springboot < Formula class Springboot < Formula
homepage 'http://projects.spring.io/spring-boot/' homepage 'http://projects.spring.io/spring-boot/'
url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${project.version}/spring-boot-cli-${project.version}-bin.tar.gz' url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${project.version}/spring-boot-cli-${project.version}-bin.tar.gz'
version '${project.version}' version '${project.version}'
sha1 '${checksum}' sha1 '${checksum}'
head 'https://github.com/spring-projects/spring-boot.git' head 'https://github.com/spring-projects/spring-boot.git'
if build.head? if build.head?
depends_on 'maven' => :build depends_on 'maven' => :build
end end
def install def install
if build.head? if build.head?
Dir.chdir('spring-boot-cli') { system 'mvn -U -DskipTests=true package' } Dir.chdir('spring-boot-cli') { system 'mvn -U -DskipTests=true package' }
root = 'spring-boot-cli/target/spring-boot-cli-*-bin/spring-*' root = 'spring-boot-cli/target/spring-boot-cli-*-bin/spring-*'
else else
root = '.' root = '.'
end end
bin.install Dir["#{root}/bin/spring"] bin.install Dir["#{root}/bin/spring"]
lib.install Dir["#{root}/lib/spring-boot-cli-*.jar"] lib.install Dir["#{root}/lib/spring-boot-cli-*.jar"]
bash_completion.install Dir["#{root}/shell-completion/bash/spring"] bash_completion.install Dir["#{root}/shell-completion/bash/spring"]
zsh_completion.install Dir["#{root}/shell-completion/zsh/_spring"] zsh_completion.install Dir["#{root}/shell-completion/zsh/_spring"]
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment