Run a CLI Thor app without arguments or task name

It seems the proper Thor-way to do this is using default_task: class Commands < Thor desc “whatever”, “The default task to run when no command is given” def whatever … end default_task :whatever end Commands.start If for whatever reason that isn’t what you need, you should be able to do something like class Commands < … Read more

Rake vs. Thor for automation scripts?

Rake and Thor serve different purposes. Rake is a general build script tool that is project-specific. In other words, you put your rakefile into your project folder and in your project’s source control, and you can create, build and do other automation tasks that are specific to your project in that rakefile. Rake requires a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)