Skip to content

Create New Provider from Scratch

Paulo Henrique Lopes Ribeiro edited this page Mar 2, 2018 · 8 revisions

Steps to Follow

  • bundle gem fog-provider --no-mit

  • git remote add origin git@github.com:fog/fog-provider.git

  • create CONTRIBUTING.md

  • create CONTRIBUTORS.md

  • create LICENSE.md linking to CONTRIBUTORS.md

  • create .ruby-version

  • create .ruby-gemset

  • create .travis.yml with support for 2.0.*, 2.1.*, 2.2.*, 2.3.*, 2.4.*, 2.5.* and jruby

  • create Rakefile with minitest as the default task

  • update fog-provider.gemspec

  • update README.md

  • create spec/minitest_helper.rb

  • In case of extraction:

    • CONTRIBUTORS.md
      • git shortlog -sne lib/fog/provider
      • git shortlog -sne lib/fog/provider.rb
      • git shortlog -sne tests/provider
      • git shortlog -sne lib/fog/bin/provider.rb
    • Rakefile
      • Add support for shindo and run both shindo and minitest on the default task
    • Move the files from fog
    • Fix orphan require's
    • Move provider/core.rb content to the file fog/provider.rb and remove the references to it
  • When coding:

    • Use autoload as much as possible to avoid loading time issues (#3430)
  • For examples take a look at one of: