Giter Club home page Giter Club logo

dante's People

Contributors

hayesgm avatar joshbuddy avatar mckern avatar nesquena avatar rkatti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dante's Issues

Tests Failing

Hi,
I am packaging dante for Debian. When I try to run the tests using bundle exec rake test, I am getting different errors each time.

The logs of three such runs can be found here - http://paste.debian.net/285198/

Can you help me find out what is the issue?

Dante and command line arguments

Dante is pretty nice. I tried to use the classes in a project of mine, not as a CLI daemon, but as a in process daemon - (The use case, was spawning a service, inside of cucumber). It works perfectly with one exception.

But I encountered what I consider a problem. When a runner is executed , Dante uses the OptionParser. Of course, the OptionParser, uses ARGV. So when someone uses Dante in the code, rather than from the CLI, it is possible to pass arguments to Dante, that Dante does not understand.

Maybe you only want to use Dante from the CLI, but it works pretty well in the code too. There is no similar code in daemon_spawn, or Daemons, that does what Dante can do in this regard.

Fork/move to dantegem/dante

This will give us a org that allows us to expand if we have extension gems and avoids putting pressure under the original creator.

Create labels

We can get the free ones when pushing to the new repository.

Use standard logger

From @krainboltgreene

We should really just use the stdlib logger, it's much better.
I should be able to call Dante.logger.info("Foo")

Totally agree, want to leave this as a reminder.

Remove 'port' from dante's default options

Hi, I'm planning on using Dante for a script which doesn't open any ports (it listens and emits to MQs) - I think there ought to be a way for folks to remove the -p PORT option (or any other) from dante's default listings.

Log message formatting

I might be missing something very obvious here, but would it be possible to add some kind of configuration option to alter the default log output for Dante's own messages? I currently work around this by redefining the log method inside the Dante::Runner class like so:

module Dante
  class Runner
    def log(message)
      puts "[#{Time.now}] #{message}"
    end
  end
end

I could add an option to Runner class that takes a proc or a lambda that would be responsible for formatting the default log output. The default value for this option would simply puts the message like the current implementation for log does. Would that solution work for you?

In addition, it might be helpful to expose the log method on the Dante module so daemon implementations can also make use of the same formatting. Any opinion or suggestions on that?

The "verify_options_hook" method does not exist (despite attr_accessor)

Dante 0.2.0 specifies the method "verify_options_hook" in its attr_accessor (under dante/runner.rb). I have verified that I have the same code, and am at a total loss as to why this is happening. I use attr_* elsewhere in my own code with no issues at all. Strangely, this method is utilized in the documentation on the gem homepage.

A simple pry on a Dante::Runner object, and a methods.sort shows, indeed, that there is no such method (nor is there a method for the others listed in the attr_accessor line).

I'm not sure if anyone has any ideas as to why this happens, but I'd love to hear them if you do. I don't really have the time to look into this more, as I'm doing this for work-related purposes, but will try to come back to it when I get some free time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.