Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect Padrino #8

Merged
merged 1 commit into from
May 8, 2016
Merged

Detect Padrino #8

merged 1 commit into from
May 8, 2016

Conversation

pocke
Copy link
Member

@pocke pocke commented May 8, 2016

#1

Padrino で作られたApplication例

Padrino で新規プロジェクトを始める例

Rails + Sinatra ≒ Padrino で遊ぼう! » 梨木を読む

検出方法

  • config/apps.rbconfig/boot.rb の中にPadrinoが含まれているかをチェック

@@ -38,3 +39,11 @@ func (sc *Scanner) hasPackage(pkg, name string) bool {
}
return false
}

func (sc *Scanner) FileContains(path, content string) bool {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gometalinter]

  • [golint] exported method Scanner.FileContains should have comment or be unexported

@pocke pocke merged commit d1cd1f7 into master May 8, 2016
@pocke pocke deleted the padrino branch May 8, 2016 03:05
@pocke pocke removed the in progress label May 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant