This repository has been archived by the owner. It is now read-only.

~/src dir #56

Closed
lucadegasperi opened this Issue Feb 17, 2013 · 13 comments

Comments

Projects
None yet
7 participants
@lucadegasperi

question, why do i need that directory? what purpose it serves? I have my repo in another folder, how do I disable the creation of that folder? also, how do I point it somewhere else?

@fromonesrc

This comment has been minimized.

Show comment
Hide comment
@fromonesrc

fromonesrc Feb 17, 2013

Contributor

Try script/boxen --srcdir /path/to/dir.

Contributor

fromonesrc commented Feb 17, 2013

Try script/boxen --srcdir /path/to/dir.

@fromonesrc

This comment has been minimized.

Show comment
Hide comment
@fromonesrc

fromonesrc Feb 18, 2013

Contributor

You can also export BOXEN_SRC_DIR=/path/to/dir.

Contributor

fromonesrc commented Feb 18, 2013

You can also export BOXEN_SRC_DIR=/path/to/dir.

@lucadegasperi

This comment has been minimized.

Show comment
Hide comment
@lucadegasperi

lucadegasperi Feb 18, 2013

Thanks for the reply, but what purpose does this folder serve? Also, I've tried changing it in the boxen/config/boxen.rb file but it has no effect.

Thanks for the reply, but what purpose does this folder serve? Also, I've tried changing it in the boxen/config/boxen.rb file but it has no effect.

@mmuehlberger

This comment has been minimized.

Show comment
Hide comment
@mmuehlberger

mmuehlberger Feb 18, 2013

I have looked into the code of the boxen gem, and it does not use an environment variable for srcdir, it does for nearly everything else.

The folder is a convenient location for all your project repositories, when you install them via boxen project_name (given, you have set up the project in boxen repository).

I have looked into the code of the boxen gem, and it does not use an environment variable for srcdir, it does for nearly everything else.

The folder is a convenient location for all your project repositories, when you install them via boxen project_name (given, you have set up the project in boxen repository).

@lucadegasperi

This comment has been minimized.

Show comment
Hide comment
@lucadegasperi

lucadegasperi Feb 18, 2013

I propose to have this variable available in the environment, Not everyone uses a ~/src folder structure, for example I have my projects in the ~/Projects directory.

I propose to have this variable available in the environment, Not everyone uses a ~/src folder structure, for example I have my projects in the ~/Projects directory.

@jroes

This comment has been minimized.

Show comment
Hide comment
@jroes

jroes Feb 18, 2013

Contributor

👍 this will also start to make Linux compatibility a bit easier, since /Users/ is not a standard directory structure on Linux.

Contributor

jroes commented Feb 18, 2013

👍 this will also start to make Linux compatibility a bit easier, since /Users/ is not a standard directory structure on Linux.

@fromonesrc

This comment has been minimized.

Show comment
Hide comment
@fromonesrc

fromonesrc Feb 18, 2013

Contributor

@mmuehlberger typo in my earlier comment. Should be BOXEN_SRC_DIR.

Contributor

fromonesrc commented Feb 18, 2013

@mmuehlberger typo in my earlier comment. Should be BOXEN_SRC_DIR.

@mmuehlberger

This comment has been minimized.

Show comment
Hide comment
@mmuehlberger

mmuehlberger Feb 18, 2013

No, it is or should be BOXEN_SRC_DIR for the repos folder, BOXEN_REPO_DIR in the config is where the boxen repo lives.

No, it is or should be BOXEN_SRC_DIR for the repos folder, BOXEN_REPO_DIR in the config is where the boxen repo lives.

@wfarr

This comment has been minimized.

Show comment
Hide comment
@wfarr

wfarr Mar 5, 2013

Member

Please file a PR for this on the appropriate boxen project if you want to specify the source dir as an environment variable.

That being, boxen/boxen first and then boxen/puppet-boxen possibly as well.

Member

wfarr commented Mar 5, 2013

Please file a PR for this on the appropriate boxen project if you want to specify the source dir as an environment variable.

That being, boxen/boxen first and then boxen/puppet-boxen possibly as well.

@wfarr wfarr closed this Mar 5, 2013

@krak3n

This comment has been minimized.

Show comment
Hide comment
@krak3n

krak3n Jul 23, 2013

Hi Guys

So I attempted to set the src directory to become a (dot) directory so my home dirs were not polluted in finder (OCD). So i Ran:

$ boxen --srcdir /Users/${USER}/.boxen

This updated to configs and boxen ran fine. Then running boxen a second time I get an error:

$ boxen
Error: Could not run: Could not retrieve facts for My-Computer-Name: Is a directory - /Users/myusername/.boxen

Inspecting .boxen it contains a symlink: our-boxen -> /opt/boxen/repo

This is exactly the same as whats in ~/src: our-boxen -> /opt/boxen/repo.

I'm a little confused as to why this fails :(

krak3n commented Jul 23, 2013

Hi Guys

So I attempted to set the src directory to become a (dot) directory so my home dirs were not polluted in finder (OCD). So i Ran:

$ boxen --srcdir /Users/${USER}/.boxen

This updated to configs and boxen ran fine. Then running boxen a second time I get an error:

$ boxen
Error: Could not run: Could not retrieve facts for My-Computer-Name: Is a directory - /Users/myusername/.boxen

Inspecting .boxen it contains a symlink: our-boxen -> /opt/boxen/repo

This is exactly the same as whats in ~/src: our-boxen -> /opt/boxen/repo.

I'm a little confused as to why this fails :(

@jbarnette

This comment has been minimized.

Show comment
Hide comment
@jbarnette

jbarnette Jul 23, 2013

Contributor

~/.boxen is reserved for boxen's use.

On Tue, Jul 23, 2013 at 8:54 AM, Christopher Reeves <
notifications@github.com> wrote:

Hi Guys

So I attempted to set the src directory to become a (dot) directory so my
home dirs were not polluted in finder (OCD). So i Ran:

$ boxen --srcdir /Users/${USER}/.boxen

This updated to configs and boxen ran fine. Then running boxen a second
time I get an error:

$ boxen
Error: Could not run: Could not retrieve facts for My-Computer-Name: Is a directory - /Users/myusername/.boxen

Inspecting .boxen it contains a symlink: our-boxen -> /opt/boxen/repo

This is exactly the same as whats in ~/src: our-boxen -> /opt/boxen/repo.

I'm a little confused as to why this fails :(


Reply to this email directly or view it on GitHubhttps://github.com/boxen/our-boxen/issues/56#issuecomment-21424366
.

Contributor

jbarnette commented Jul 23, 2013

~/.boxen is reserved for boxen's use.

On Tue, Jul 23, 2013 at 8:54 AM, Christopher Reeves <
notifications@github.com> wrote:

Hi Guys

So I attempted to set the src directory to become a (dot) directory so my
home dirs were not polluted in finder (OCD). So i Ran:

$ boxen --srcdir /Users/${USER}/.boxen

This updated to configs and boxen ran fine. Then running boxen a second
time I get an error:

$ boxen
Error: Could not run: Could not retrieve facts for My-Computer-Name: Is a directory - /Users/myusername/.boxen

Inspecting .boxen it contains a symlink: our-boxen -> /opt/boxen/repo

This is exactly the same as whats in ~/src: our-boxen -> /opt/boxen/repo.

I'm a little confused as to why this fails :(


Reply to this email directly or view it on GitHubhttps://github.com/boxen/our-boxen/issues/56#issuecomment-21424366
.

@wfarr

This comment has been minimized.

Show comment
Hide comment
@wfarr

wfarr Jul 23, 2013

Member

@krak3n If you want to hide the dir in Finder, you can do that without making it a dot file.

exec {
  "/usr/bin/SetFile -a V ${boxen::config::srcdir}":
    unless => "/usr/bin/GetFileInfo ${boxen::config::srcdir} | grep attributes | grep V"
}
Member

wfarr commented Jul 23, 2013

@krak3n If you want to hide the dir in Finder, you can do that without making it a dot file.

exec {
  "/usr/bin/SetFile -a V ${boxen::config::srcdir}":
    unless => "/usr/bin/GetFileInfo ${boxen::config::srcdir} | grep attributes | grep V"
}
@krak3n

This comment has been minimized.

Show comment
Hide comment
@krak3n

krak3n Jul 24, 2013

Ah ok thanks @jbarnette :) I would still prefer it to be a dot file so I'll just name it something else. Thanks both :)

krak3n commented Jul 24, 2013

Ah ok thanks @jbarnette :) I would still prefer it to be a dot file so I'll just name it something else. Thanks both :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.