-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Report active Ruby version * Move code around * Fix swallowed error * Flip error handling * Disable test * Fix * Re-enable tests * Implement step tracker * Implement step tracker * Extra version string validation for rbenv errors * Define workdir in command
- Loading branch information
Showing
88 changed files
with
3,659 additions
and
64,556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/bitrise-io/go-utils/v2/analytics" | ||
"github.com/bitrise-io/go-utils/v2/env" | ||
"github.com/bitrise-io/go-utils/v2/log" | ||
) | ||
|
||
type stepTracker struct { | ||
tracker analytics.Tracker | ||
logger log.Logger | ||
} | ||
|
||
func newStepTracker(envRepo env.Repository, logger log.Logger) stepTracker { | ||
p := analytics.Properties{ | ||
"build_slug": envRepo.Get("BITRISE_BUILD_SLUG"), | ||
"step_execution_id": envRepo.Get("BITRISE_STEP_EXECUTION_ID"), | ||
"step_id": "fastlane", | ||
} | ||
return stepTracker{ | ||
tracker: analytics.NewDefaultTracker(logger, p), | ||
logger: logger, | ||
} | ||
} | ||
|
||
func (t *stepTracker) logEffectiveRubyVersion(versionString string) { | ||
properties := analytics.Properties{ | ||
"effective_ruby_version": versionString, | ||
} | ||
t.tracker.Enqueue("step_ruby_version_selected", properties) | ||
} | ||
|
||
func (t *stepTracker) wait() { | ||
t.tracker.Wait() | ||
} |
68 changes: 66 additions & 2 deletions
68
vendor/github.com/bitrise-io/go-steputils/command/rubycommand/rubycommand.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
vendor/github.com/bitrise-io/go-steputils/step/steperror.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
vendor/github.com/bitrise-io/go-steputils/v2/ruby/environment.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.