Skip to content

Commit

Permalink
Add how to include provider sdk gem in gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Mar 30, 2021
1 parent ebb3297 commit 0e32d29
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions providers/writing_a_new_provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ index b7e6783821..685474c570 100644
+
```

This is a bit optimistic since this hasn't been accepted into the ManageIQ organization yet :)
This is a bit optimistic since this hasn't been accepted into the ManageIQ organization yet. :)

To work on this plugin locally you have to tell bundler to look in a different place for your gem (more info in [developer_setup/plugins.md](../developer_setup/plugins.md))

Expand All @@ -166,6 +166,12 @@ $ cd ..
$ bin/setup
```

Lets also take this opportunity to commit the initial code built by the generator before we make any changes:
```bash
$ git add .
$ git commit -m "Initial commit"
```

Now that we have both sides linked up lets verify that everything worked:
```ruby
$ bundle exec rails c
Expand All @@ -181,8 +187,6 @@ Now lets get that provider added so we have something to play with:
```ruby
>> ems = ManageIQ::Providers::AwesomeCloud::CloudManager.create!(:name => "My Awesome Cloud", :zone => Zone.default_zone)
```
<<<<<<< Updated upstream
=======

Now that we have that done it is time to start filling out our new provider. The first step is to find the SDK gem for this provider. If there isn't an provider SDK for ruby you have a few options which we'll cover later. For now lets assume that Awesome Cloud has a ruby gem called 'awesome_cloud'.

Expand All @@ -207,6 +211,3 @@ Then bundle update to pull in the change
```
$ bundle update
```
Now that we have
>>>>>>> Stashed changes

0 comments on commit 0e32d29

Please sign in to comment.