https://github.com/kaorimatz/fog-scaleway
Fog provider for Scaleway
https://github.com/kaorimatz/fog-scaleway
fog scaleway
Last synced: 7 months ago
JSON representation
Fog provider for Scaleway
- Host: GitHub
- URL: https://github.com/kaorimatz/fog-scaleway
- Owner: kaorimatz
- License: mit
- Created: 2016-08-07T07:20:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-07-26T08:48:12.000Z (about 2 years ago)
- Last Synced: 2024-10-11T21:14:58.817Z (12 months ago)
- Topics: fog, scaleway
- Language: Ruby
- Size: 104 KB
- Stars: 13
- Watchers: 2
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Fog::Scaleway
[](https://rubygems.org/gems/fog-scaleway)
[](https://travis-ci.org/kaorimatz/fog-scaleway)
[](https://coveralls.io/github/kaorimatz/fog-scaleway)Fog provider gem to support [Scaleway](https://www.scaleway.com/).
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'fog-scaleway'
```And then execute:
$ bundle
## Usage
Put your credentials to the fog configuration file:
```yaml
default:
scaleway_organization: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx # Your organization ID
scaleway_token: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx # Your token
scaleway_region: par1 # par1 or ams1
```Create a connection to the service:
```ruby
compute = Fog::Compute[:scaleway]
```Manage servers and resources using the connection:
```ruby
server = compute.servers.bootstrapserver.ssh('uname').first.stdout # => "Linux\r\n"
server.terminate
```## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test FOG_MOCK=true` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/kaorimatz/fog-scaleway.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).