-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
276726b
commit 7f79f3d
Showing
5 changed files
with
35 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
projects: | ||
- name: "project-1" | ||
type: "git" | ||
location: "local" # local or remote | ||
path: "/path/to/project-1" # local path or remote url |
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
Empty file.
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,15 @@ | ||
require "yaml" | ||
|
||
# https://crystal-lang.org/api/1.12.1/YAML/Serializable.html | ||
class RunwayConfiguration | ||
include YAML::Serializable | ||
property projects : Array(Project) | ||
end | ||
|
||
class Project | ||
include YAML::Serializable | ||
property name : String | ||
property type : String | ||
property location : String | ||
property path : String | ||
end |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
require "./cli" | ||
|
||
CLI.run | ||
module Runway | ||
def self.start(log, config) | ||
log.info { Emoji.emojize(":airplane: starting runway") } | ||
log.info { "#{config. projects.size} #{config.projects.size == 1 ? "project" : "projects"} loaded" } | ||
end | ||
end |