Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exlug

Make slugs... with Elixir!!

Install

CLI:

curl https://raw.githubusercontent.com/ride/exlug/master/exlug -o exlug
chmod +x exlug
./exlug

Code:

Add exlug as a dependency to your project

  defp deps do
    [{:exlug, "~> 0.1.0"}]
  end

Usage

CLI:

$ ./exlug --dir /path/to/src --app sleepy-waters-6298 --release
Initializing slug for /path/to/src...done
Archiving /path/to/src...done
Pushing /var/folders/5m/m_zcl3016gdfpz4yy4zp33k80000gn/T/slug-83940020.tgz...done
Releasing...done (v18)

Code:

{:ok, process_types} = Procfile.parse(procfile_path)
slug = Slug.create(api_key, app_name, source_dir, process_types)
|> Slug.archive
|> Slug.push

release = Slug.release(slug)
IO.puts "done (v#{release.version})"

License

exlug is copyright (c) 2015 Ride Group Inc and contributors.

The source code is released under the MIT License.

Check LICENSE for more information.

About

Heroku Slug API client for Elixir

Resources

Stars

4 stars

Watchers

16 watching

Forks

Releases

Packages

Contributors

Languages