Skip to content

Commit

Permalink
Merge pull request #13 from funbox/develop
Browse files Browse the repository at this point in the history
Version 0.8.0
  • Loading branch information
andyone authored Mar 10, 2017
2 parents e0e7452 + 8035496 commit 986241f
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 40 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ all: bin

deps:
go get -v pkg.re/check.v1
go get -v pkg.re/essentialkaos/ek.v6
go get -v pkg.re/essentialkaos/ek.v7
go get -v pkg.re/essentialkaos/go-simpleyaml.v1
go get -v pkg.re/yaml.v2

Expand Down
35 changes: 17 additions & 18 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ import (
"os"
"runtime"

"pkg.re/essentialkaos/ek.v6/arg"
"pkg.re/essentialkaos/ek.v6/env"
"pkg.re/essentialkaos/ek.v6/fmtc"
"pkg.re/essentialkaos/ek.v6/fsutil"
"pkg.re/essentialkaos/ek.v6/knf"
"pkg.re/essentialkaos/ek.v6/log"
"pkg.re/essentialkaos/ek.v6/system"
"pkg.re/essentialkaos/ek.v6/usage"
"pkg.re/essentialkaos/ek.v7/arg"
"pkg.re/essentialkaos/ek.v7/env"
"pkg.re/essentialkaos/ek.v7/fmtc"
"pkg.re/essentialkaos/ek.v7/fsutil"
"pkg.re/essentialkaos/ek.v7/knf"
"pkg.re/essentialkaos/ek.v7/log"
"pkg.re/essentialkaos/ek.v7/system"
"pkg.re/essentialkaos/ek.v7/usage"
"pkg.re/essentialkaos/ek.v7/usage/update"

"github.com/funbox/init-exporter/export"
"github.com/funbox/init-exporter/procfile"
Expand All @@ -29,7 +30,7 @@ import (
// App props
const (
APP = "init-exporter"
VER = "0.7.2"
VER = "0.8.0"
DESC = "Utility for exporting services described by Procfile to init system"
)

Expand Down Expand Up @@ -422,8 +423,6 @@ func printErrorAndExit(message string, a ...interface{}) {

// showUsage print usage info to console
func showUsage() {
usage.Breadcrumbs = true

info := usage.NewInfo("", "app-name")

info.AddOption(ARG_PROCFILE, "Path to procfile", "file")
Expand All @@ -446,13 +445,13 @@ func showUsage() {
// showAbout print version info to console
func showAbout() {
about := &usage.About{
App: APP,
Version: VER,
Desc: DESC,
Year: 2006,
Owner: "FB Group",
License: "MIT License",
Repository: "funbox/init-exporter",
App: APP,
Version: VER,
Desc: DESC,
Year: 2006,
Owner: "FB Group",
License: "MIT License",
UpdateChecker: usage.UpdateChecker{"funbox/init-exporter", update.GitHubChecker},
}

about.Render()
Expand Down
7 changes: 5 additions & 2 deletions common/init-exporter.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@

Summary: Utility for exporting services described by Procfile to init system
Name: init-exporter
Version: 0.7.2
Release: 1%{?dist}
Version: 0.8.0
Release: 0%{?dist}
Group: Development/Tools
License: MIT
URL: https://github.com/funbox/init-exporter
Expand Down Expand Up @@ -107,6 +107,9 @@ rm -rf %{buildroot}
###############################################################################

%changelog
* Thu Mar 09 2017 Anton Novojilov <[email protected]> - 0.8.0-0
- ek package updated to v7

* Fri Mar 03 2017 Anton Novojilov <[email protected]> - 0.7.2-1
- Fixed wrong path to upsrtart-exporter binary

Expand Down
4 changes: 2 additions & 2 deletions export/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (

"github.com/funbox/init-exporter/procfile"

"pkg.re/essentialkaos/ek.v6/fsutil"
"pkg.re/essentialkaos/ek.v6/log"
"pkg.re/essentialkaos/ek.v7/fsutil"
"pkg.re/essentialkaos/ek.v7/log"

. "pkg.re/check.v1"
)
Expand Down
8 changes: 4 additions & 4 deletions export/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"io/ioutil"
"os"

"pkg.re/essentialkaos/ek.v6/fsutil"
"pkg.re/essentialkaos/ek.v6/log"
"pkg.re/essentialkaos/ek.v6/path"
"pkg.re/essentialkaos/ek.v7/fsutil"
"pkg.re/essentialkaos/ek.v7/log"
"pkg.re/essentialkaos/ek.v7/path"

"github.com/funbox/init-exporter/procfile"
)
Expand Down Expand Up @@ -208,7 +208,7 @@ func (e *Exporter) helperPath(name string) string {
func deleteByMask(dir, mask string) error {
files := fsutil.List(
dir, true,
&fsutil.ListingFilter{
fsutil.ListingFilter{
MatchPatterns: []string{mask},
},
)
Expand Down
2 changes: 1 addition & 1 deletion export/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"fmt"
"text/template"

"pkg.re/essentialkaos/ek.v6/log"
"pkg.re/essentialkaos/ek.v7/log"

"github.com/funbox/init-exporter/procfile"
)
Expand Down
4 changes: 2 additions & 2 deletions export/systemd.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strings"
"time"

"pkg.re/essentialkaos/ek.v6/system"
"pkg.re/essentialkaos/ek.v6/timeutil"
"pkg.re/essentialkaos/ek.v7/system"
"pkg.re/essentialkaos/ek.v7/timeutil"

"github.com/funbox/init-exporter/procfile"
)
Expand Down
2 changes: 1 addition & 1 deletion export/upstart.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"fmt"
"time"

"pkg.re/essentialkaos/ek.v6/timeutil"
"pkg.re/essentialkaos/ek.v7/timeutil"

"github.com/funbox/init-exporter/procfile"
)
Expand Down
11 changes: 7 additions & 4 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package: github.com/funbox/init-exporter
import:
- package: pkg.re/essentialkaos/ek.v6
- package: pkg.re/essentialkaos/ek.v7
subpackages:
- arg
- env
Expand Down
8 changes: 4 additions & 4 deletions procfile/procfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
"sort"
"strings"

"pkg.re/essentialkaos/ek.v6/errutil"
"pkg.re/essentialkaos/ek.v6/fsutil"
"pkg.re/essentialkaos/ek.v6/log"
"pkg.re/essentialkaos/ek.v6/path"
"pkg.re/essentialkaos/ek.v7/errutil"
"pkg.re/essentialkaos/ek.v7/fsutil"
"pkg.re/essentialkaos/ek.v7/log"
"pkg.re/essentialkaos/ek.v7/path"

"pkg.re/essentialkaos/go-simpleyaml.v1"
)
Expand Down

0 comments on commit 986241f

Please sign in to comment.