Coder Social home page Coder Social logo

vagrant-routeros-plugin's Introduction

vagrant-guest-plugin-ruby-template

This repo is a template for building a Ruby Vagrant guest plugin. Follow the steps to setup your own guest plugin!

  1. Copy this repo. Its a template so follow the Github instructions to create a repo from a template using the UI, or use the github cli.
$ gh repo create vagrant-guest-myspecialguest --template hashicorp/vagrant-guest-plugin-ruby-template --public

Update the gemspec

  1. Update the gemspec. Choose a good, descriptive name for your project. Rename my-vagrant-guest-plugin-ruby-template.gemspec to reflect this, and fill out the required information.

  2. Rename all the references of my-vagrant-guest-plugin-ruby-template.gemspec to your new name.

Update the module

  1. Rename vagrant-guest.rb to match the name of your plugin and update the contents of the file. This includes updating the module name MyVagrantGuestPlugin, the name and description fields and the guest(:myguestplugin) do line.

  2. Rename all the references of MyVagrantGuestPlugin to your new name.

  3. Update the guest detection method in lib/guest/guest.rb. This method will be run by Vagrant to determine if the guest is running the OS assumed by the plugin.

Add capabilities

  1. Add any new capabilities the plugin needs to the guest/cap module. Be sure to register the capabilities.

Build and install your gem

  1. Commit all your changes if you haven't already.
$ git add -A
$ git commit -m "My Vagrant guest plugin"
  1. Build your plugin
$ gem build my-vagrant-guest-plugin-ruby-template.gemspec 
  Successfully built RubyGem
  Name: my-vagrant-guest-plugin
  Version: 0.0.1
  File: my-vagrant-guest-plugin-0.0.1.gem
  1. (optional) Push your gem to RubyGems
$ gem push my-vagrant-guest-plugin-0.0.1.gem
  1. Install your plugin
# Install from the locally built gem
$ vagrant plugin install my-vagrant-guest-plugin-0.0.1.gem

# If you pushed the gem to RubyGems, install from RubyGems
$ vagrant plugin install my-vagrant-guest-plugin

vagrant-routeros-plugin's People

Contributors

ktogias avatar

Watchers

 avatar

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.