You can replace your CapHiera *class* with a *module*, and mix it into
*Capistrano::DSL*. either by explicit "Capistrano::DSL.send(:include,
CapHiera)" or by a simple include CapHiera in the Capfile, deploy.rb, etc.

Lee Hambley
--
http://lee.hambley.name/
+49 (0) 170 298 5667


On 4 February 2014 09:02, Joe Topjian <[email protected]> wrote:

> Hello,
>
> I created a class that allows me to use Hiera alongside Capistrano 3:
> https://gist.github.com/jtopjian/8799635
>
> This file is added to lib/capistrano, I require it in the Capfile, it
> works, and I'd be happy using it. But I'm just wondering if there's a
> better way to go about this? The other Hiera/Capistrano examples that I
> found are using Capistrano 2 and mix Hiera into the Capistrano module. For
> example: https://github.com/gtmtechltd/capistrano-hiera-example
>
> Is there a similar way to do this with Capistrano 3? Is the method I used
> the best way to go about this?
>
> I apologize if this is more of a general ruby question than specific to
> Capistrano.
>
> Thanks,
> Joe
>
> --
> You received this message because you are subscribed to the Google Groups
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/capistrano/41ad2333-e484-4104-b1d6-11ce0a532aac%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/capistrano/CAN_%2BVLXr-rK2GtwUuZcyDvB-5io4cUw6WNu%3DcHYsbRmLK23SYg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to