Class: Yorobot::Tool

Inherits:
Object
  • Object
show all
Defined in:
lib/yorobot.rb

Class Method Summary collapse

Class Method Details

.main(args = ARGV) ⇒ Object



111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# File 'lib/yorobot.rb', line 111

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