This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
-
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.
Merge pull request #21 from degica/document-kaiser
Document kaiser
- Loading branch information
Showing
33 changed files
with
1,230 additions
and
733 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in kaiser.gemspec | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
require 'rspec/core/rake_task' | ||
|
||
|
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,4 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/setup' | ||
require 'kaiser' | ||
|
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 |
---|---|---|
@@ -1,9 +1,44 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'kaiser/version' | ||
require 'kaiser/kaiserfile' | ||
require 'kaiser/kaiser_cli' | ||
require 'kaiser/cli' | ||
require 'kaiser/after_dotter' | ||
require 'kaiser/dotter' | ||
|
||
require 'kaiser/config' | ||
|
||
require 'kaiser/cmds/init' | ||
require 'kaiser/cmds/deinit' | ||
require 'kaiser/cmds/up' | ||
require 'kaiser/cmds/down' | ||
require 'kaiser/cmds/shutdown' | ||
require 'kaiser/cmds/db_save' | ||
require 'kaiser/cmds/db_load' | ||
require 'kaiser/cmds/db_reset' | ||
require 'kaiser/cmds/db_reset_hard' | ||
require 'kaiser/cmds/logs' | ||
require 'kaiser/cmds/attach' | ||
require 'kaiser/cmds/login' | ||
require 'kaiser/cmds/show' | ||
require 'kaiser/cmds/set' | ||
|
||
# Kaiser | ||
module Kaiser | ||
SUB_COMMANDS = { | ||
init: Kaiser::Cmds::Init, | ||
deinit: Kaiser::Cmds::Deinit, | ||
up: Kaiser::Cmds::Up, | ||
down: Kaiser::Cmds::Down, | ||
shutdown: Kaiser::Cmds::Shutdown, | ||
db_save: Kaiser::Cmds::DbSave, | ||
db_load: Kaiser::Cmds::DbLoad, | ||
db_reset: Kaiser::Cmds::DbReset, | ||
db_reset_hard: Kaiser::Cmds::DbResetHard, | ||
logs: Kaiser::Cmds::Logs, | ||
attach: Kaiser::Cmds::Attach, | ||
login: Kaiser::Cmds::Login, | ||
show: Kaiser::Cmds::Show, | ||
set: Kaiser::Cmds::Set | ||
}.freeze | ||
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,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Kaiser | ||
# Prints properly after a dotter prints | ||
class AfterDotter | ||
|
Oops, something went wrong.