Skip to content

Comments

Dev#7

Open
TheTechmage wants to merge 28 commits intomasterfrom
dev
Open

Dev#7
TheTechmage wants to merge 28 commits intomasterfrom
dev

Conversation

@TheTechmage
Copy link
Owner

No description provided.

Switched renzoku from using yaml based configs to libconfig instead. libconfig
is much more in line with the type of config that I was hoping to have renzoku
use in the first place. Now that I have finally decided on an official config
format, I can finally start actually recommending it's use to others since
renzoku should be able to build on other OSs. It used to be that only Linux
Distros with the latest and greatest packages could do so.

This fixes #2 and gets a closer to completing the tasks needed for #1.

Signed-off-by: Colton Wolkins (Ogre) <frostyfrog2@gmail.com>
When a process' command was NULL (Not set), or when it was disabled, we were
still trying to for and run the command. Now we return false.
Detailed Reasoning
==================

Fed Up
------

I'm fed up with the configuration parsers out there. The versions that are out
there that I've used in this project so far (libconfig++ and libyaml-cpp) have
changed their API in some way or another that made it impossible to compile on
older systems, without shipping the libraries along with the package or
statically linking them into renzoku.

Birth of a Parser
-----------------

I have started to write my own parser so that I A) achieve better
cross-platformify renzoku and B) finally learn how to write a parser from the
ground up. The code within this commit is still in-development and will be
until it can successfully parse the config file outlined in GH-3.

Problems with the previous config format
----------------------------------------

Quite frankly, the main problem with the previous config file format was that I
was unable to step away from the project and think of other use cases. The only
main use cases that I had were my own. Speaking about Renzoku at PLUG really
helped me understand how renzoku could be used by other people. GH-3 came out
of PLUG and has become more of a guide for where I'm heading next with my code.
:D
This is the first pass at my official parser. It isn't complete, it's not near
complete, but it works well so far. I'm creating and pushing this commit as a
checkpoint since I'm currently at 801Labs and I want to make sure that I have a
backup somewhere. :) Never know what hacktivists might do ;p
Now parsing watcher blocks and initial configuration options. Not currently
saving options or parsing steps. That is what I'll be working on next.
This is a fix for GH-4. Renzoku no longer segfaults when the build step is
disabled.
I fixed the parser code so that:
A) It works (for the most part) and,
B) It's easy to use and attach to the main renzoku application.

This is me working towards #2
On a side note:
1) it works! 😳
2) I can now semi use renzoku for development again 😁

Now... To get it to be more production level and working somewhat decently.
😅
This should fix #2 as far as CentOS 7 goes. Have not tested on CentOS 6 or on
Debian. Those are the next goals.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant