Class: BeamUp::Providers::Neocities

Inherits:
Base
  • Object
show all
Defined in:
lib/beam_up/providers/neocities.rb

Defined Under Namespace

Classes: Config

Constant Summary collapse

API_HOST =
"https://neocities.org"

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from BeamUp::Providers::Base

Instance Method Details

#deploy!(path) ⇒ Object



28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/beam_up/providers/neocities.rb', line 28

def deploy!(path)
  @path = path

  upload_files

  Result.new(
    provider: "Neocities",
    deploy_id: Time.now.to_i.to_s,
    url: "https://#{@configuration.site_name}.neocities.org"
  )
rescue => error
  Result.new(provider: "Neocities", error: error.message)
end