```ruby
node[:crons].each_pair do |cronname, options|
    cron cronname do
      minute options[:minute] || "*"
      hour options[:hour] || "*"
      day options[:day] || "*"
      month options[:month] || "*"
      weekday options[:weekday] || "*"
      command options[:command]
      user options[:user] || node[:apps_user]
    end
end

```

Add source .bash_profile to commands
user
```ruby
node[:crons].each_pair do |cronname, options|
    cron cronname do
      minute options[:minute] || "*"
      hour options[:hour] || "*"
      day options[:day] || "*"
      month options[:month] || "*"
      weekday options[:weekday] || "*"
      user options[:user] || node[:apps_user]
      command "source /home/#{user}/.bash_profile && #{options[:command]}"
    end
end

```
assistant