Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supoprt external application plugins #83

Closed
ripienaar opened this issue Dec 26, 2020 · 0 comments
Closed

Supoprt external application plugins #83

ripienaar opened this issue Dec 26, 2020 · 0 comments

Comments

@ripienaar
Copy link
Member

An external plugin would do something like:

module MCollective
  class Application::Ping < Application # rubocop:disable Style/ClassAndModuleChildren
    description "Ping all nodes"

    external(:command => "choria", :args => ["ping"])
    external_help(:command => "choria", :args => ["ping", "--help"])
  end
end

If I ran this as mco ping --graph then it would invoke choria ping --graph

ripienaar added a commit to ripienaar/mcorpc-ruby-support that referenced this issue Dec 26, 2020
ripienaar added a commit to ripienaar/mcorpc-ruby-support that referenced this issue Dec 26, 2020
ripienaar added a commit that referenced this issue Dec 26, 2020
(#83) support external applications
ripienaar added a commit to ripienaar/mcorpc-ruby-support that referenced this issue Jan 5, 2021
ripienaar added a commit to ripienaar/mcorpc-ruby-support that referenced this issue Jan 5, 2021
Ping is a low level network tester that should remain available
to the Ruby code as a way to confirm it functions.

Signed-off-by: R.I.Pienaar <[email protected]>
ripienaar added a commit that referenced this issue Jan 5, 2021
(#83) restore ping as a low level test requirement
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

No branches or pull requests

1 participant