lib/vagrant-sakura/config.rb
# The ACCESS TOKEN to access Sakura Cloud API.
#
# @return [String]
The ACCESS TOKEN to access Sakura Cloud API.
The ACCESS TOKEN to access Sakura Cloud API .
def validate(machine)
        errors = _detected_errors
        if @access_token.nil?
          errors << I18n.t("vagrant_sakura.config.access_token_required")
        end
        if @access_token_secret.nil?
          errors << I18n.t("vagrant_sakura.config.access_token_secret_required")
        end
        if not (@sshkey_id or @public_key_path or @use_insecure_key)
          errors << I18n.t("vagrant_sakura.config.need_ssh_key_config")
        end
        if disk_source_mode == :os_type
          if not VagrantPlugins::Sakura::OSType::os_types.include? @os_type
            errors << I18n.t("vagrant_sakura.config.need_valid_os_type")
          end
        end
        { "Sakura Provider" => errors }
      end
def validate ( machine ) errors = _detected_errors if @access_token . nil? errors << I18n . t ( "vagrant_sakura.config.access_token_required" ) end if @access_token_secret . nil? errors << I18n . t ( "vagrant_sakura.config.access_token_secret_required" ) end if not ( @sshkey_id or @public_key_path or @use_insecure_key ) errors << I18n . t ( "vagrant_sakura.config.need_ssh_key_config" ) end if disk_source_mode == :os_type if not VagrantPlugins :: Sakura :: OSType :: os_types . include? @os_type errors << I18n . t ( "vagrant_sakura.config.need_valid_os_type" ) end end { "Sakura Provider" => errors } end
The ACCESS TOKEN to access Sakura Cloud API.
The ACCESS TOKEN to access Sakura Cloud API .
None
String
machine
<not_specific>