Sha256: 902253254af7fee10b84779fc2ad5263a1ac08d9119c17d6daa2b1b2da617116
Contents?: true
Size: 691 Bytes
Versions: 5
Compression:
Stored size: 691 Bytes
Contents
module Cifrado module Plugins class Saio < Thor include Cifrado::Utils class_option :provider, :type => :string class_option :api_key, :type => :string, :required => true class_option :client_id, :type => :string, :required => true no_tasks do def service return @service if @service client_id = options[:client_id] api_key = options[:api_key] @service = Fog::Compute.new :provider => 'DigitalOcean', :digitalocean_api_key => api_key, :digitalocean_client_id => client_id end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems