
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
A simple Digital Ocean (http://digitalocean.com) API wrapper
gem install columbus
# You can set Columbus configuration at class level like so
Colombo.configure do |c|
c.api_key = ENV['DO_API_KEY']
c.client_id = ENV['DO_CLIENT_ID']
end
# Or configure each instance independently
@client = Colombo.new(
:api_key => ENV['DO_API_KEY'],
:client_id => ENV['DO_CLIENT_ID']
)
# This method returns a specfic droplet (via droplet id) without having to fetch all droplets first
@client.droplet( droplet_id )
# This method returns all active droplets that are currently running in your account
@client.droplets()
# This method returns full information for a specific droplet ID
@client.droplets.find( droplet_id )
# This method allows you to create a new droplet.
new_droplet = droplets.create({
:name => COLOMBO_DROPLET_NAME ,
:image_id => COLOMBO_IMAGE_ID ,
:region_id => COLOMBO_REGION_ID ,
:size_id => COLOMBO_SIZE_ID
})
# This method allows you to reboot a droplet.
# This is the preferred method to use if a server is not responding.
@client.droplets.find( droplet_id ).reboot()
# This method allows you to power cycle a droplet.
# This will turn off the droplet and then turn it back on.
@client.droplets.find( droplet_id ).power_cycle()
# This method allows you to shutdown a running droplet.
# The droplet will remain in your account.
@client.droplets.find( droplet_id ).shutdown()
# Return all the available regions within the Digital Ocean cloud.
@client.regions
# This method returns all the available images that can be accessed by your
# client ID. You will have access to all public images by default, and any
# snapshots or backups that you have created in your own account.
@client.images
# Takes the optional parameter filter, either :my_images or :global
@client.images(:filter => :my_images)
# This method displays the attributes of an image.
@client.images.find(image_id)
# This method allows you to destroy an image. There is no way to restore a
# deleted image so be careful and ensure your data is properly backed up.
# NOTE: You need to pass true to the destroy method to ensure that you know
# what you are doing.
@client.images.find( image_id ).destroy(true)
# This method lists all the available public SSH keys in your account
# that can be added to a droplet.
@client.ssh_keys
# Shows a specific public SSH key in your account that can be added to a droplet.
@client.find( ssh_key_id )
# This method allows you to add a new public SSH key to your account.
ssh_key = @client.ssh_keys.create({
:name => 'my ssh key name',
:ssh_pub_key => 'my ssh key ...'
})
# This method allows you to modify an existing public SSH key in your account.
ssh_key.update(:ssh_pub_key => 'my new ssh key')
# This method will delete the SSH key from your account.
ssh_key.destroy
# This method returns all the available sizes that can be used to create a droplet.
@client.sizes
Colombo is free software distributed under the terms of the MIT license reproduced here.
FAQs
Unknown package
We found that colombo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.