Class: Yorobot::Tool
- Inherits:
-
Object
- Object
- Yorobot::Tool
- Defined in:
- lib/yorobot.rb
Class Method Summary collapse
Class Method Details
.main(args = ARGV) ⇒ Object
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/yorobot.rb', line 93 def self.main( args=ARGV ) ## setup/check mono root puts "[flow] pwd: #{Dir.pwd}" ## quick hack: ## if /sites does not exists ## assume running with GitHub Actions or such ## and use working dir as root? or change to home dir ~/ or ~/mono - why? why not? ## ## in the future use some -e/-env(ironemt) settings and scripts - why? why not? if Dir.exist?( 'C:/Sites' ) Mono.root = 'C:/Sites' ## use local (dev) setup for testing flow steps puts "[flow] assume local (dev) setup for testing" else Mono.root = Dir.pwd ## for debugging print / walk mono (source) tree Mono.walk end puts "[flow] Mono.root: #{Mono.root}" ## pass along to "standard" flow engine ::Flow::Tool.main( args ) end |